IntrospectionSchema

Because there are different versions of GraphQL in the wild and because users may use different introspection queries, this model is a superset of all possible introspection models.

Especially:

  • a schema definition is always added

  • a service definition is always added

  • 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