GraphQLSchema
Index
Constructors
constructor
Parameters
config: Readonly<GraphQLSchemaConfig>
Returns GraphQLSchema
Properties
__validationErrors
astNode
description
extensionASTNodes
extensions
Accessors
[toStringTag]
Returns string
Methods
getDirective
Parameters
name: string
Returns Maybe<GraphQLDirective>
getDirectives
Returns readonly GraphQLDirective[]
getImplementations
Parameters
interfaceType: GraphQLInterfaceType
Returns { interfaces?: readonly GraphQLInterfaceType[]; objects?: readonly GraphQLObjectType<any, any>[] }
interfaces: readonly GraphQLInterfaceType[]
objects: readonly GraphQLObjectType<any, any>[]
getMutationType
Returns Maybe<GraphQLObjectType<any, any>>
getPossibleTypes
Parameters
abstractType: GraphQLAbstractType
Returns readonly GraphQLObjectType<any, any>[]
getQueryType
Returns Maybe<GraphQLObjectType<any, any>>
getRootType
Parameters
operation: OperationTypeNode
Returns Maybe<GraphQLObjectType<any, any>>
getSubscriptionType
Returns Maybe<GraphQLObjectType<any, any>>
getType
Parameters
name: string
Returns undefined | GraphQLNamedType
getTypeMap
Returns TypeMap
isSubType
Parameters
abstractType: GraphQLAbstractType
maybeSubType: GraphQLObjectType<any, any> | GraphQLInterfaceType
Returns boolean
toConfig
Returns GraphQLSchemaNormalizedConfig
Create and operate on GraphQL type definitions and schema.