-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(GraphQL): Pointer constraint input type as ID #6020
refactor(GraphQL): Pointer constraint input type as ID #6020
Conversation
Redefines the Pointer constraint input type from a custom scalar to a simple ID.
Codecov Report
@@ Coverage Diff @@
## master #6020 +/- ##
=========================================
+ Coverage 93.22% 93.93% +0.7%
=========================================
Files 164 164
Lines 11106 11084 -22
=========================================
+ Hits 10354 10412 +58
+ Misses 752 672 -80
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
@davimacedo ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 small issues
), | ||
_nin: defaultGraphQLTypes._nin( | ||
new GraphQLList(defaultGraphQLTypes.OBJECT_ID) | ||
), | ||
_exists: defaultGraphQLTypes._exists, | ||
_select: defaultGraphQLTypes._select, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also improve these following 4 operators. But we can address it in a separate PR. I will take a note in the project.
@@ -284,30 +202,6 @@ const load = ( | |||
classGraphQLUpdateType | |||
); | |||
|
|||
const classGraphQLPointerTypeName = `${graphQLClassName}PointerInput`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you removing this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was a mistake, thanks for noticing it. It was supposed to remove only the Pointer scalar type.
…ty#6020) * refactor(GraphQL): Pointer constraint input type as ID Redefines the Pointer constraint input type from a custom scalar to a simple ID. * fix: PR review requested changes
Redefines the Pointer constraint input type from a custom scalar to
a simple ID.