-
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): fix exclusion of filters in Query generation in case of…
… just Has Filters. (#6870) Fixes GRAPHQL-787. This PR fixes the Bug in query and mutations generation in case of types that have just `has` filter and not any other kind of filter. For example for the given type: ``` type Student { name: String age: Int } ``` the corresponding query generated was ``` queryStudent(order: StudentOrder, first: Int, offset: Int): [Student] ``` and only `add` mutation was being generated. Whereas, the correct query should be: ``` queryStudent(filter: StudentFilter, order: StudentOrder, first: Int, offset: Int): [Student] ``` and corresponding update and delete mutation should be: ``` updateStudent(input: UpdateStudentInput!): UpdateStudentPayload deleteStudent(filter: StudentFilter!): DeleteStudentPayload ```
- Loading branch information
1 parent
0c31195
commit 5e60ef1
Showing
13 changed files
with
527 additions
and
110 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.