Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputExtApi

API for GraphQL InputObjectTypeExtensionNode

Hierarchy

Index

Constructors

constructor

  • new InputExtApi(node: InputObjectTypeExtensionNode): InputExtApi

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 _fields

_fields: Crud<InputValueDefinitionNode, InputValueDefinitionApi, { defaultValue?: GQL.ValueNode; description?: StringValueNodeProps | StringValueNode; directives?: ReadonlyArray<DirectiveNodeProps | DirectiveNode>; name: NameNodeProps | NameNode; type: TypeNodeProps | GQL.TypeNode }, string> = new Crud({parent: this.node,key: 'fields',api: Api.inputValueDefinitionApi,factory: Ast.inputValueDefinitionNode,matcher: (node): Fieldname => node.name.value,})

Readonly node

node: InputObjectTypeExtensionNode

Methods

assertEnumExt

assertInputExt

assertInterfaceExt

assertKind

assertObjectExt

assertScalarExt

assertUnionExt

createDirective

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

    • props: Ast.DirectiveNodeProps | DirectiveNode

    Returns this

createField

  • createField(props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps): this
  • Parameters

    • props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps

    Returns this

getDirective

getDirectiveNames

getDirectives

getField

getFieldDefaultValue

getFieldType

getFieldnames

getFields

getFieldsByTypename

getName

  • getName(): string
  • Returns string

hasDirective

hasField

isEnumExt

  • isEnumExt(): this is EnumExtApi

isInputExt

  • isInputExt(): this is InputExtApi

isInterfaceExt

  • isInterfaceExt(): this is InterfaceExtApi

isKind

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

    • K: GQL.KindEnum

    Parameters

    • kind: K

    Returns this is KindToApiType<K>

isObjectExt

  • isObjectExt(): this is ObjectExtApi

isScalarExt

  • isScalarExt(): this is ScalarExtApi

isUnionExt

  • isUnionExt(): this is UnionExtApi

removeDirective

removeField

setFieldDefualtValue

  • setFieldDefualtValue(fieldname: Fieldname, props: GQL.ValueNode): this

setFieldType

  • setFieldType(fieldname: Fieldname, props: GQL.TypeNode | Ast.TypeNodeProps): this

setName

  • setName(value: string): this
  • Parameters

    • value: string

    Returns 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

updateField

  • updateField(fieldname: Fieldname, props: Partial<InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps>): this
  • Parameters

    • fieldname: Fieldname
    • props: Partial<InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps>

    Returns this

upsertDirective

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

    • props: Ast.DirectiveNodeProps | DirectiveNode

    Returns this

upsertField

  • upsertField(props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps): this
  • Parameters

    • props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps

    Returns this

Generated using TypeDoc