Search
Preparing search index...
The search index is not available
graphql-extra
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
EnumTypeApi
Class EnumTypeApi
API for GraphQL
EnumTypeDefinitionNode
Hierarchy
NameMixin
<
this
>
&
KindAssertionMixin
<
this
>
&
DescriptionMixin
<
this
>
&
DirectivesMixin
<
this
>
&
TypeDefinitionAssertionMixin
<
this
>
&
EnumValueDefinitionMixin
<
this
>
EnumTypeApi
Index
Constructors
constructor
Properties
_directives
_values
node
Methods
assert
Enum
Type
assert
Input
Type
assert
Interface
Type
assert
Kind
assert
Object
Type
assert
Scalar
Type
assert
Union
Type
create
Directive
create
Value
get
Description
get
Directive
get
Directive
Names
get
Directives
get
Name
get
Value
get
Value
Names
get
Values
has
Description
has
Directive
has
Value
is
Enum
Type
is
Input
Type
is
Interface
Type
is
Kind
is
Object
Type
is
Scalar
Type
is
Union
Type
remove
Directive
remove
Value
set
Description
set
Name
update
Directive
update
Value
upsert
Directive
upsert
Value
Constructors
constructor
new
Enum
Type
Api
(
node
:
EnumTypeDefinitionNode
)
:
EnumTypeApi
Parameters
node:
EnumTypeDefinitionNode
Returns
EnumTypeApi
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
_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
node
:
EnumTypeDefinitionNode
Methods
assert
Enum
Type
assert
Enum
Type
(
)
:
EnumTypeApi
Returns
EnumTypeApi
assert
Input
Type
assert
Input
Type
(
)
:
InputTypeApi
Returns
InputTypeApi
assert
Interface
Type
assert
Interface
Type
(
)
:
InterfaceTypeApi
Returns
InterfaceTypeApi
assert
Kind
assert
Kind<K>
(
kind
:
K
)
:
KindToApiType
<
K
>
Type parameters
K
:
GQL.KindEnum
Parameters
kind:
K
Returns
KindToApiType
<
K
>
assert
Object
Type
assert
Object
Type
(
)
:
ObjectTypeApi
Returns
ObjectTypeApi
assert
Scalar
Type
assert
Scalar
Type
(
)
:
ScalarTypeApi
Returns
ScalarTypeApi
assert
Union
Type
assert
Union
Type
(
)
:
UnionTypeApi
Returns
UnionTypeApi
create
Directive
create
Directive
(
props
:
Ast.DirectiveNodeProps
|
DirectiveNode
)
:
this
Parameters
props:
Ast.DirectiveNodeProps
|
DirectiveNode
Returns
this
create
Value
create
Value
(
props
:
Ast.EnumValueDefinitionNodeProps
|
EnumValueDefinitionNode
)
:
this
Parameters
props:
Ast.EnumValueDefinitionNodeProps
|
EnumValueDefinitionNode
Returns
this
get
Description
get
Description
(
)
:
string
|
undefined
Returns
string
|
undefined
get
Directive
get
Directive
(
directivename
:
Directivename
)
:
DirectiveApi
Parameters
directivename:
Directivename
Returns
DirectiveApi
get
Directive
Names
get
Directive
Names
(
)
:
Directivename
[]
Returns
Directivename
[]
get
Directives
get
Directives
(
)
:
DirectiveApi
[]
Returns
DirectiveApi
[]
get
Name
get
Name
(
)
:
string
Returns
string
get
Value
get
Value
(
fieldname
:
Fieldname
)
:
EnumValueDefinitionApi
Parameters
fieldname:
Fieldname
Returns
EnumValueDefinitionApi
get
Value
Names
get
Value
Names
(
)
:
Fieldname
[]
Returns
Fieldname
[]
get
Values
get
Values
(
)
:
EnumValueDefinitionApi
[]
Returns
EnumValueDefinitionApi
[]
has
Description
has
Description
(
value
?:
undefined
|
string
)
:
boolean
Parameters
Optional
value:
undefined
|
string
Returns
boolean
has
Directive
has
Directive
(
directivename
:
Directivename
)
:
boolean
Parameters
directivename:
Directivename
Returns
boolean
has
Value
has
Value
(
fieldname
:
Fieldname
)
:
boolean
Parameters
fieldname:
Fieldname
Returns
boolean
is
Enum
Type
is
Enum
Type
(
)
:
this
is
EnumTypeApi
Returns
this
is
EnumTypeApi
is
Input
Type
is
Input
Type
(
)
:
this
is
InputTypeApi
Returns
this
is
InputTypeApi
is
Interface
Type
is
Interface
Type
(
)
:
this
is
InterfaceTypeApi
Returns
this
is
InterfaceTypeApi
is
Kind
is
Kind<K>
(
kind
:
K
)
:
this
is
KindToApiType
<
K
>
Type parameters
K
:
GQL.KindEnum
Parameters
kind:
K
Returns
this
is
KindToApiType
<
K
>
is
Object
Type
is
Object
Type
(
)
:
this
is
ObjectTypeApi
Returns
this
is
ObjectTypeApi
is
Scalar
Type
is
Scalar
Type
(
)
:
this
is
ScalarTypeApi
Returns
this
is
ScalarTypeApi
is
Union
Type
is
Union
Type
(
)
:
this
is
UnionTypeApi
Returns
this
is
UnionTypeApi
remove
Directive
remove
Directive
(
directivename
:
Directivename
)
:
this
Parameters
directivename:
Directivename
Returns
this
remove
Value
remove
Value
(
fieldname
:
Fieldname
)
:
this
Parameters
fieldname:
Fieldname
Returns
this
set
Description
set
Description
(
value
:
string
|
undefined
)
:
this
Parameters
value:
string
|
undefined
Returns
this
set
Name
set
Name
(
value
:
string
)
:
this
Parameters
value:
string
Returns
this
update
Directive
update
Directive
(
directivename
:
Directivename
, props
:
Ast.DirectiveNodeProps
|
Partial
<
Ast.DirectiveNodeProps
|
DirectiveNode
>
)
:
this
Parameters
directivename:
Directivename
props:
Ast.DirectiveNodeProps
|
Partial
<
Ast.DirectiveNodeProps
|
DirectiveNode
>
Returns
this
update
Value
update
Value
(
fieldname
:
Fieldname
, props
:
Fieldname
|
Partial
<
Ast.EnumValueDefinitionNodeProps
|
EnumValueDefinitionNode
>
)
:
this
Parameters
fieldname:
Fieldname
props:
Fieldname
|
Partial
<
Ast.EnumValueDefinitionNodeProps
|
EnumValueDefinitionNode
>
Returns
this
upsert
Directive
upsert
Directive
(
props
:
Ast.DirectiveNodeProps
|
DirectiveNode
)
:
this
Parameters
props:
Ast.DirectiveNodeProps
|
DirectiveNode
Returns
this
upsert
Value
upsert
Value
(
props
:
Ast.EnumValueDefinitionNodeProps
|
EnumValueDefinitionNode
)
:
this
Parameters
props:
Ast.EnumValueDefinitionNodeProps
|
EnumValueDefinitionNode
Returns
this
Globals
Enum
Type
Api
constructor
_directives
_values
node
assert
Enum
Type
assert
Input
Type
assert
Interface
Type
assert
Kind
assert
Object
Type
assert
Scalar
Type
assert
Union
Type
create
Directive
create
Value
get
Description
get
Directive
get
Directive
Names
get
Directives
get
Name
get
Value
get
Value
Names
get
Values
has
Description
has
Directive
has
Value
is
Enum
Type
is
Input
Type
is
Interface
Type
is
Kind
is
Object
Type
is
Scalar
Type
is
Union
Type
remove
Directive
remove
Value
set
Description
set
Name
update
Directive
update
Value
upsert
Directive
upsert
Value
Generated using
TypeDoc
API for GraphQL
EnumTypeDefinitionNode