forked from sourcenetwork/defradb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ability to explain
sortNode
attribute(s). (sourcenetwork#558
) - Relevant issue(s): Resolves sourcenetwork#481. Fixes sourcenetwork#584 ([2] case). - Description Adds the attributes for `sortNode` to be included in the returned explain graph response. So far, we are only introducing 1 attribute, which represents a list containing all the `orderings` of each field requested to be sorted, with its corresponding direction. - Request: ``` query @Explain { author(order: {age: ASC}) { name age verified } } ``` - Response: ``` { "explain": { "selectTopNode": { "sortNode": { "selectNode": { "filter": null, "scanNode": { "filter": null, "collectionID": "3", "collectionName": "author", "spans": []{ { "start": "/3", "end": "/4", } } } } "orderings": []{ { "direction": "ASC", "fields": [ "age" ], } } } } } } ```
- Loading branch information
1 parent
90a850a
commit a3d35b5
Showing
5 changed files
with
563 additions
and
5 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
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
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
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
Oops, something went wrong.