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

feat: override operation field types via directives #8071

Commits on Jul 9, 2022

  1. feat: override operation field types/nullability via directives

    Similar to DirectiveArgumentAndInputFieldMappings, add the ability to override
    the final operation types/nullability via field-level directives.
    
    The rationale behind this change is to allow clients to adjust the generated
    types/nullability within queries/fragments to match a corresponding server-side
    transformation (e.g. we have a @nonnull FIELD directive that causes our server
    to treat the field as required, this way we can ensure the types match)
    
    Previous discussion: dotansimha#5676
    Further reading: https://github.com/graphql/graphql-wg/blob/main/rfcs/ClientControlledNullability.md#a-nonnull-custom-directive
    
    Co-authored-by: Jon Jensen <[email protected]>
    izumin5210 and jenseng committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    5812d45 View commit details
    Browse the repository at this point in the history
  2. Add changeset

    izumin5210 committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    77c5caf View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2022

  1. Configuration menu
    Copy the full SHA
    2cb67e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c78d83b View commit details
    Browse the repository at this point in the history
  3. Update changeset

    izumin5210 committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    eea74b2 View commit details
    Browse the repository at this point in the history