-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c47392
commit f43db36
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"groqd": minor | ||
--- | ||
|
||
Feature: Simplified APIs | ||
|
||
We removed irrelevant methods from the root `q` object, and from query chains. | ||
This improves auto-complete and API discoverability, and reduces confusion. | ||
|
||
- The root `q` object no longer exposes irrelevant chaining methods. | ||
- E.g. we removed: `q.filter(...)`, `q.deref()`, `q.field(...)`, etc. | ||
- Query chains no longer expose irrelevant top-level utilites. | ||
- E.g. we removed `(chain).star`, `(chain).conditional(...)`, `(chain).select(...)`, `(chain).value(...)`, etc. | ||
- The subquery in a projection no longer exposes irrelvant chaining methods. | ||
- E.g. with `.project(sub => ({ ... }))` we removed: `sub.filter(...)`, `sub.order(...)`, etc. | ||
|
||
> Backwards compatibility: we only removed methods that created invalid GROQ queries, | ||
> so this change should be backwards compatible. |