Skip to content
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 Validating Directives #583

Merged

Commits on Feb 23, 2023

  1. Add Validating Directives

    Adding support for directives which are evaluated prior to executing
    any resolvers. This allows validation to be performed on the request
    and prevent it from executing any significant work by rejecting the
    request early.
    
    The most obvious case for this is authorization: based on the requested
    fields, we can tell whether the request is valid given the current
    user, and reject the entire request. If that were applied at resolution
    time, the request would have partially resolved, only to return errors
    for the specific fields which are not authorized.
    dackroyd committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    9ae7df1 View commit details
    Browse the repository at this point in the history