-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GraphQL): optimize eq filter queries (#7895)
Fixes GQLSAAS-1236. This PR optimizes `eq` filter GraphQL queries. For ex: The below DQL query: ``` query { queryPerson(filter: {nick: {eq: "Dgraph"}}){ id name nick } } ``` will now be written into: ``` query { queryPerson(func: eq(Person.nick, "Dgraph")) @filter(type(Person)) { Person.id : uid Person.name : Person.name Person.nick : Person.nick } } ``` which was earlier written into:- ``` query { queryPerson(func: type(Person)) @filter(eq(Person.nick, "Dgraph")){ Person.id : uid Person.name : Person.name Person.nick : Person.nick } } ```
- Loading branch information
1 parent
db6a01c
commit 314091a
Showing
2 changed files
with
29 additions
and
18 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