-
-
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
Added ability to control field visibility on schema definition #1434
Conversation
@spawnia just added the field visibility validation. Let me know if that is what you had in mind. 👍 |
I made some modifications to further align how a non-visible and a non-existent field would behave. Due to the different call sites, we don't always have the same Please document this feature at https://github.com/webonyx/graphql-php/blob/master/docs/type-definitions/object-types.md#field-configuration-options. The note for |
@spawnia thanks for all the modifications. I've updated the documentation, adding information about this feature. Here is the PR #1456. |
You can push the docs update directly to this pull request. |
Done @spawnia. |
Co-authored-by: Benedikt Franke <[email protected]>
This PR aims to add the ability to control field visibility on the schema definition, using either a bool or a callable that has access to the context. This is not final in any way and I am open to other ideas on how to handle this.
Fixes #782