You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SchemaDocument is an AST-level representation. The type allows everything that's syntactically valid, and values are constructed with a parser.
Schema is a known valid GraphQL schema. It is guaranteed to be fully validated, and excludes many syntactically valid values that are not valid GraphQL.
This means the parser only has to worry about syntax, the validator only has to worry about validation, and the executor doesn't have to worry about dodgy input.
Why not unify
Schema
andSchemaDocument
as the same type?The text was updated successfully, but these errors were encountered: