Full schemas: umbrella discussion #1391
martinbonnin
started this conversation in
General
Replies: 1 comment 4 replies
-
I think |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to do proper validation and feature detection, tools like clients and/or IDE plugins need to get more information than just what the source SDL schema is. For an example they need to know if
__InputValue.isDeprecated
is present and for this require access to some of the built-in types.This information is available in introspection but the introspection format has disadvantages. It's less compact and generally less readable/editable. Someone navigating to a field definition in their IDE would have a hard time reading introspection JSON.
Using SDL for this purpose would be nice. But this is use case is not really represented in the specification.
Someone taking the introspection results and transforming them to SDL would produce a schema that is not spec compliant because of this:
There are other places that mention omitting the built-in directives, which is not desirable for this use case.
This proposal is about recognizing that the GraphQL language can be used for other purposes than being a source for implementations and defining what constitutes a valid full schema.
This discussion tracks smaller discussions/items. I'll update it as we go.
Current items:
sourceSchemaDocument
andfullSchemaDocument
, bikeshed the names (glossary, spec-edits)Todo:
References:
Beta Was this translation helpful? Give feedback.
All reactions