IntrospectionSchema

Because there are different versions of GraphQL in the wild and because users may use different introspection queries it tries to be as lenient as possible.

Probable user error (incomplete introspection query):

  • missing description defaults to null

  • missing directive argument definitions default to empty

  • missing directives default to empty

  • missing defaultValue defaults to null

  • missing isDeprecated (for fields) defaults to false

  • missing mutationType/subscriptionType

Old schemas

  • missing isRepeatable defaults to false

  • missing isDeprecated (for input value) defaults to false

Very old schemas

  • missing directive locations skip the directive definition

Functions

Link copied to clipboard