Optionalbuildprovide custom options when using buildClientSchema, buildASTSchema, etc
OptionalcustomJSON schemas ued for custom scalars
OptionaldocumentA GraphQL DocumentNode AST
OptionaldocumentAn SDL document string
OptionalfileAn array of URIs or globs to associate with this schema in the language worker
Uses picomatch which supports many common expressions except brackets
Only necessary if you provide more than one schema, otherwise it defaults to the sole schema
OptionalintrospectionA parsed JSON literal of the introspection results
OptionalintrospectionA stringified introspection JSON result
OptionalschemaA GraphQLSchema instance
A unique uri string for this schema. Model data will eventually be set for this URI for definition lookup
Inspired by the
monaco-jsonschema object inDiagnosticSettings["schemas"], which we use :)You have many schema format options to provide, choose one!
For large schemas, try different formats to see what is most efficient for you.