Class InputValuesAsArgumentsMixin
Hierarchy
-
InputValuesAsArgumentsMixin
Constructors
constructor
-
Parameters
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
-
getArgument
-
Parameters
getArgumentDefaultValue
-
Parameters
Returns ValueApi | undefined
getArgumentType
-
Parameters
getArguments
-
getArgumentsByTypename
-
Parameters
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
Returns this
setArgumentType
- setArgumentType(argname: Argname, props: GQL.TypeNode | Ast.TypeNodeProps): this
-
Parameters
-
-
props: GQL.TypeNode | Ast.TypeNodeProps
Returns this
updateArgument
- updateArgument(argname: Argname, props: Partial<InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps>): this
-
Parameters
-
-
props: Partial<InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps>
Returns this
upsertArgument
- upsertArgument(props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps): this
-
Parameters
-
props: InputValueDefinitionNode | Ast.InputValueDefinitionNodeProps
Returns this