-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add @specifiedBy
directive
#2276
Conversation
@IvanGoncharov Thanks for the review! While trying to improve the test coverage here, I wanted pass an SDL that used I'm not entirely sure of the implications of this, but if more work is need and given some direction, I'd be happy to continue to work on this. cc: @eapache |
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 can't speak to the question about schema printer but the rest of this LGTM.
Thanks for the help Matt!
@m14t It should be handled the same way as |
8bb758d
to
e76581b
Compare
@IvanGoncharov thank you for the feedback. I've made the requested changes, and feel better about this. I still need to check that I have all of the test cases, but think that the implementation is done. |
@m14t You should have 100% coverage for diff ATM it's 97.56%: |
74bb0d3
to
90e650e
Compare
I've been working on the [implementation](graphql/graphql-js#2276) of the `@specified(by: "")` directive as specified by graphql/graphql-spec#649, and am interested an any feedback or progress on that effort.
@m14t Can please update this PR to be in sync with graphql/graphql-spec@b418b60 ? |
I've been working on the [implementation](graphql/graphql-js#2276) of the `@specified(by: "")` directive as specified by graphql/graphql-spec#649, and am interested an any feedback or progress on that effort.
This in an implementation for a spec proposal: * Spec proposal: [[RFC] Custom Scalar Specification URIs](graphql/graphql-spec#649) * Original issue: [[RFC] Custom Scalar Specification URIs](graphql/graphql-spec#635)
Co-Authored-By: christopher butcher <[email protected]>
`specifiedByUrl` is already included when expanding `GraphQLScalarTypeConfig`
1377aeb
to
18689db
Compare
@IvanGoncharov Sorry for the delay here, but this is ready for another review when you have a chance. |
4dcf49b
to
c4a6a0b
Compare
c4a6a0b
to
17d4ad3
Compare
@m14t Sorry for the delay will try to review, merge, release before tomorrow's WG. |
@@ -166,6 +175,7 @@ export type IntrospectionScalarType = {| | |||
+kind: 'SCALAR', | |||
+name: string, | |||
+description?: ?string, | |||
+specifiedByUrl: ?string, |
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.
This is technically a breaking change: code that was using IntrospectionScalarType
no longer type-checks unless specifiedByUrl
is explicitly set.
Description
This in an implementation for a spec proposal:
Example usage
Source
Output
Notes
Please let me know if I forgot something.