Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputValuesAsArgumentsMixin

Hierarchy

  • InputValuesAsArgumentsMixin

Index

Constructors

constructor

Properties

Readonly _arguments

_arguments: 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: 'arguments',api: Api.inputValueDefinitionApi,factory: Ast.inputValueDefinitionNode,matcher: (node): Argname => node.name.value,})

Readonly node

Methods

createArgument

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

    • props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps

    Returns this

getArgnames

  • Returns Argname[]

getArgument

getArgumentDefaultValue

  • Parameters

    Returns ValueApi | undefined

getArgumentType

  • Parameters

    Returns TypeApi

getArguments

getArgumentsByTypename

hasArgument

  • hasArgument(argname: Argname): boolean
  • Parameters

    Returns boolean

removeArgument

  • removeArgument(argname: Argname): this
  • Parameters

    Returns this

setArgumentDefualtValue

  • setArgumentDefualtValue(argname: Argname, props: GQL.ValueNode): this
  • Parameters

    • argname: Argname
    • props: GQL.ValueNode

    Returns this

setArgumentType

  • setArgumentType(argname: Argname, props: GQL.TypeNode | Ast.TypeNodeProps): this
  • Parameters

    • argname: Argname
    • props: GQL.TypeNode | Ast.TypeNodeProps

    Returns this

updateArgument

  • updateArgument(argname: Argname, props: Partial<InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps>): this
  • Parameters

    • argname: Argname
    • props: Partial<InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps>

    Returns this

upsertArgument

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

    • props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps

    Returns this

Generated using TypeDoc