ReadonlyGraphThe graphql GraphQLError constructor. options is undefined (not a
modeled object) so the real typeof GraphQLError — whose constructor is
new (message: string, options?: GraphQLErrorOptions) — stays assignable:
contravariance requires the facade's options to be assignable to
GraphQLErrorOptions | undefined, and undefined is.
ReadonlyNoThe no-schema-introspection validation rule.
ReadonlyspecifiedThe specified (built-in) validation rules.
Execute a document; the result carries data and/or errors.
Extract the operation definition for operationName from a document.
OptionaloperationName: string | nullParse a query/mutation/subscription document.
Subscribe to a document; the result is an async iterable or a single error result.
Validate a document against a schema; returns validation errors.
Optionalrules: readonly unknown[]
The structural shape of a graphql@16 module — the external boundary (M70i X6-3).
This is deliberately looser than the internal GraphqlRuntime: it references only the public
GraphqlSchemaLikeandunknown, so a genuinegraphqlmodule is assignable to it without a cast —adaptGraphqlModule(graphql)type-checks, which is the X6-3 gate. The precise structural types live onGraphqlRuntime(internal); the loader bridges the two with a per-member cast, so nothing here is read at runtime.Declared with method syntax, not indexed access into GraphqlRuntime: an indexed access like
validate: GraphqlRuntime['validate']produces a property of function type, whichstrictFunctionTypeschecks contravariantly, so the real module's concreteGraphQLSchema/DocumentNodeparameters would reject the facade's structural ones. Method syntax is checked bivariantly, which is what lets a genuinegraphqlmodule assign here.