Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SchemaExtensionApi

API for GraphQL SchemaExtensionNode

Hierarchy

Index

Constructors

constructor

Properties

Readonly _directives

_directives: Crud<DirectiveNode, DirectiveApi, string | { arguments?: ReadonlyArray<ArgumentNode | ArgumentNodeProps>; name: NameNodeProps | NameNode }, string> = new Crud({parent: this.node,key: 'directives',api: Api.directiveApi,factory: Ast.directiveNode,matcher: (node): Directivename => node.name.value,})

Readonly _operationTypes

_operationTypes: Crud<OperationTypeDefinitionNode, OperationTypeDefinitionApi, { operation: GQL.OperationTypeNode; type: NamedTypeNodeProps | NamedTypeNode }, "query" | "mutation" | "subscription"> = new Crud({parent: this.node,key: 'operationTypes',factory: Ast.operationTypeDefinitionNode,api: Api.operationTypeDefinitionApi,matcher: (node): GQL.OperationTypeNode => node.operation,})

Readonly node

node: GQL.SchemaExtensionNode

Methods

assertKind

createDirective

  • createDirective(props: Ast.DirectiveNodeProps | DirectiveNode): this
  • Parameters

    • props: Ast.DirectiveNodeProps | DirectiveNode

    Returns this

createOperationType

  • createOperationType(props: OperationTypeDefinitionNode | Ast.OperationTypeDefinitionNodeProps): this

getDirective

getDirectiveNames

getDirectives

getMutation

getMutationTypename

  • getMutationTypename(): Typename | undefined

getOperationType

getOperationTypename

  • getOperationTypename(operation: GQL.OperationTypeNode): string | undefined

getOperationTypenames

getOperationTypes

getQuery

getQueryTypename

  • getQueryTypename(): Typename | undefined

getSubscription

getSubscriptionTypename

  • getSubscriptionTypename(): Typename | undefined

hasDirective

hasOperationType

  • hasOperationType(operation: GQL.OperationTypeNode): boolean

isKind

  • isKind<K>(kind: K): this is KindToApiType<K>
  • Type parameters

    • K: GQL.KindEnum

    Parameters

    • kind: K

    Returns this is KindToApiType<K>

removeDirective

removeOperationType

  • removeOperationType(operation: GQL.OperationTypeNode): this

updateDirective

  • updateDirective(directivename: Directivename, props: Ast.DirectiveNodeProps | Partial<Ast.DirectiveNodeProps | DirectiveNode>): this
  • Parameters

    • directivename: Directivename
    • props: Ast.DirectiveNodeProps | Partial<Ast.DirectiveNodeProps | DirectiveNode>

    Returns this

updateOperationType

  • updateOperationType(operation: GQL.OperationTypeNode, props: Partial<OperationTypeDefinitionNode | Ast.OperationTypeDefinitionNodeProps>): this
  • Parameters

    • operation: GQL.OperationTypeNode
    • props: Partial<OperationTypeDefinitionNode | Ast.OperationTypeDefinitionNodeProps>

    Returns this

upsertDirective

  • upsertDirective(props: Ast.DirectiveNodeProps | DirectiveNode): this
  • Parameters

    • props: Ast.DirectiveNodeProps | DirectiveNode

    Returns this

upsertOperationType

  • upsertOperationType(props: OperationTypeDefinitionNode | Ast.OperationTypeDefinitionNodeProps): this

Generated using TypeDoc