-
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.
Browse files
Browse the repository at this point in the history
This PR is a breaking change for the `eq` filter on the List of `enum` Types. This PR fixes bugs in the filter generated for enum types. For the given schema:- ``` enum Status { ACTIVE DEACTIVATED } type VerificationFilter { status: [Status]! @search } ``` the `hash` filter generated for `status` was: ``` input Status_hash { eq: [Status]! in: [Status] } ``` whereas, it should be: ``` input Status_hash { eq: Status in: [Status] } ``` This PR also fixes incorrect filter generated for `exact` index in List of enum types. Earlier it was being generated like: ``` input Status_exact { eq: [Status] in: [Status] le: [Status] lt: [Status] ge: [Status] gt: [Status] between: Status } ``` but it should be like: ``` input Status_exact { eq: Status in: [Status] le: Status lt: Status ge: Status gt: Status between: Status } ``` Breaking change lies in the generation of `eq` filters. Earlier it was `eq: [Status]!` but now it is `eq: Status`. Both are syntactically fine but `eq: [Status]!` conflicts with the expected usage of `eq` filter. (cherry picked from commit 40b20c7)
- Loading branch information
1 parent
cdba5dd
commit 2c2ceb4
Showing
9 changed files
with
123 additions
and
40 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
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