Class EnumValueDefinitionMixin
Constructors
constructor
-
Parameters
Properties
Readonly _values
_values
: Crud<EnumValueDefinitionNode, EnumValueDefinitionApi, string | { description
?: StringValueNodeProps | StringValueNode; directives
?: ReadonlyArray<DirectiveNodeProps | DirectiveNode>; name
: NameNodeProps | NameNode }, string> = new Crud({parent: this.node,key: 'values',api: Api.enumValueDefinitionApi,factory: Ast.enumValueDefinitionNode,matcher: (node): Fieldname => node.name.value,})
Readonly node
Methods
createValue
- createValue(props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode): this
-
Parameters
-
props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode
Returns this
getValue
-
Parameters
getValueNames
-
getValues
-
hasValue
-
Parameters
Returns boolean
removeValue
-
Parameters
Returns this
updateValue
- updateValue(fieldname: Fieldname, props: Fieldname | Partial<Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode>): this
-
Parameters
-
-
props: Fieldname | Partial<Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode>
Returns this
upsertValue
- upsertValue(props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode): this
-
Parameters
-
props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode
Returns this