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
groupNode
and it's attribute(s). (sour…
…cenetwork#641) - Resolves sourcenetwork#525 - Description: Makes `groupNode` explainable. Explains the child selects list of attributes of `groupNode`. Explains the attribute that represents the field the `groupBy` is on. Includes integration tests for various types of `groupNode` explanations. - Request: ``` query @Explain { author ( groupBy: [age, verified], ) { age _group(filter: {age: {_gt: 63}}) { name } } } ``` - Response: ``` { "data": [ { "explain": { "selectTopNode": { "groupNode": { "groupByFields": [ "age", "verified" ], "childSelects": [ { "collectionName": "author", "filter": { "age": { "_gt": 63 } }, "docKeys": null, "groupBy": null, "limit": null, "orderBy": null } ], "selectNode": { "filter": null, "scanNode": { "collectionID": "3", "collectionName": "author", "filter": null, "spans": [ { "end": "/4", "start": "/3" } ] } } } } } } ] } ```
- Loading branch information
1 parent
963dec1
commit 59bcd42
Showing
11 changed files
with
1,971 additions
and
23 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
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.