-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Standard directives question #632
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
Comments
@sungam3r De facto you don't need to specify standard directive or standard types in SDL. @sungam3r Do you want to work on such PR? |
Ok. I will try. I just want to clarify the answer - no standard directives in SDL and all of them in introspection. Right? |
Will this rule also apply to the |
I would say they can be omitted in SDL and then the implementation should add default implementation. But SDL can contain standard directive, for example:
Reference criteria make sense for types but not for query directives if the directive location allows directives to be used in query document it should 100% be present in introspection.
This is an interesting question on its own. At the moment we put all directives into introspection even if they SDL ones. I would keep it as is until we figure out the solution for #300. |
By the way, all my questions are caused by a #300. I carefully read this issue and all the issues in one way or another related to it. Now I have a working solution in my fork of graphql-dotnet for getting directives by introspection, I also have a converter from json result to SDL format. It remains only to resolve this question with the standard directives. |
Since we are talking about #597:
But what about not built-in not referenced anywhere scalars? Should they be present in SDL? |
At the moment yes and I think SDL should be a valid option for representing partial schemas in general. |
Closing this issue since progress now tracked in #633 |
I did not find in the specification the answer to the question whether standard directives
include
,deprecated
andskip
should be returned from introspection request. And should these directives be presented in SDL? Or can they be omitted in both cases?The text was updated successfully, but these errors were encountered: