Skip to content

Conversation

@leebyron
Copy link
Contributor

@leebyron leebyron commented May 6, 2016

buildASTSchema used to not regard directives in 0.4.x, just always including only @skip and @include. Since 0.5.0 included the ability to use directives in the experimental schema language, existing use of this tool found no defined directives and therefore excluded these two built-ins.

This fixes the issue by implicitly adding these built-in directives if they were not explicitly defined.

@ghost ghost added the CLA Signed label May 6, 2016
`buildASTSchema` used to not regard directives in 0.4.x, just always including only `@skip` and `@include`. Since 0.5.0 included the ability to use directives in the experimental schema language, existing use of this tool found no defined directives and therefore excluded these two built-ins.

This fixes the issue by implicitly adding these built-in directives if they were not explicitly defined.
@leebyron leebyron force-pushed the ast-skip-include branch from 99bb0ac to c49b13b Compare May 6, 2016 18:57
@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 98.214% when pulling c49b13b on ast-skip-include into 2ac41f6 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 98.216% when pulling c49b13b on ast-skip-include into 2ac41f6 on master.

@leebyron leebyron merged commit 44768a8 into master May 6, 2016
@leebyron leebyron deleted the ast-skip-include branch May 6, 2016 19:10
sogko added a commit to sogko/graphql-js that referenced this pull request Jun 1, 2016
* master: (26 commits)
  0.6.0
  Validation: improving overlapping fields quality (graphql#386)
  Validation: context.getFragmentSpreads now accepts selectionSet rather than fragment AST node
  Factor out more closure functions
  Factor out closure functions to normal functions
  Deprecated directive (graphql#384)
  RFC: Directive location: schema definition (graphql#382)
  RFC: Schema Language Directives (graphql#376)
  Export introspection in public API
  Export directive definitions. (graphql#381)
  BUG: Ensure building AST schema does not exclude @Skip and @include (graphql#380)
  documentation of schema constructor
  Revert "Remove all 'instanceof GraphQLSchema' checks" (graphql#377)
  remove all 'instanceof GraphQLSchema' checks (graphql#371)
  Error logging for new interface type semantics (graphql#350)
  Nit: Missing case in grammar for TypeSystemDefinition in comment
  Bug: printer can print non-parsable value
  Factor out suggestion quoting utility
  Minor refactoring
  Minor refactoring of error messages for unknown fields
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants