-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
How can I add schema directives? #617
Comments
You should be able to use directives the same way in SDL (see this example from tests - at the very bottom). Those directives should be available on type instance via |
@vladar How can you use schema directives from php when extending ObjectType. Do I need to pass an extension/ASTNode in the |
@Tyler-Gauch directives are not intended to be used this way, see: graphql/graphql-js#746 (comment) . You can inject your own metadata into the config object for tracking runtime information. |
@mwijngaard You are right. We will also add Closing this but feel free to re-open if you want to continue the discussion. |
I like to create Enforcing access permissions as described here, so I can do Authorization and ACL
https://www.apollographql.com/docs/graphql-tools/schema-directives/#enforcing-access-permissions
I cant find anything in the documentation
The text was updated successfully, but these errors were encountered: