Search
Preparing search index...
The search index is not available
graphql-extra
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
DirectiveDefinitionApi
Class DirectiveDefinitionApi
Hierarchy
NameMixin
<
this
>
&
KindAssertionMixin
<
this
>
&
DescriptionMixin
<
this
>
&
InputValuesAsArgumentsMixin
<
this
>
DirectiveDefinitionApi
Index
Constructors
constructor
Properties
_arguments
_locations
node
Methods
assert
Kind
create
Argument
create
Location
get
Argnames
get
Argument
get
Argument
Default
Value
get
Argument
Type
get
Arguments
get
Arguments
ByTypename
get
Description
get
Locations
get
Name
has
Argument
has
Description
has
Location
is
Kind
is
Repeatable
remove
Argument
remove
Location
set
Argument
Defualt
Value
set
Argument
Type
set
Description
set
Locations
set
Name
set
Repeatable
update
Argument
upsert
Argument
Constructors
constructor
new
Directive
Definition
Api
(
node
:
DirectiveDefinitionNode
)
:
DirectiveDefinitionApi
Parameters
node:
DirectiveDefinitionNode
Returns
DirectiveDefinitionApi
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
_locations
_locations
:
Crud
<
NameNode
,
"VARIABLE_DEFINITION"
|
"FIELD"
|
"FRAGMENT_SPREAD"
|
"INLINE_FRAGMENT"
|
"FRAGMENT_DEFINITION"
|
"ENUM"
|
"OBJECT"
|
"FIELD_DEFINITION"
|
"QUERY"
|
"MUTATION"
|
"SUBSCRIPTION"
|
"SCHEMA"
|
"SCALAR"
|
"ARGUMENT_DEFINITION"
|
"INTERFACE"
|
"UNION"
|
"ENUM_VALUE"
|
"INPUT_OBJECT"
|
"INPUT_FIELD_DEFINITION"
,
string
|
{
name
:
string
}
,
"VARIABLE_DEFINITION"
|
"FIELD"
|
"FRAGMENT_SPREAD"
|
"INLINE_FRAGMENT"
|
"FRAGMENT_DEFINITION"
|
"ENUM"
|
"OBJECT"
|
"FIELD_DEFINITION"
|
"QUERY"
|
"MUTATION"
|
"SUBSCRIPTION"
|
"SCHEMA"
|
"SCALAR"
|
"ARGUMENT_DEFINITION"
|
"INTERFACE"
|
"UNION"
|
"ENUM_VALUE"
|
"INPUT_OBJECT"
|
"INPUT_FIELD_DEFINITION"
>
= new Crud({api: (node): GQL.DirectiveLocationEnum => node.value as GQL.DirectiveLocationEnum,factory: Ast.nameNode,key: 'locations',matcher: (node): GQL.DirectiveLocationEnum => node.value as GQL.DirectiveLocationEnum,parent: this.node,})
Readonly
node
node
:
DirectiveDefinitionNode
Methods
assert
Kind
assert
Kind<K>
(
kind
:
K
)
:
KindToApiType
<
K
>
Type parameters
K
:
GQL.KindEnum
Parameters
kind:
K
Returns
KindToApiType
<
K
>
create
Argument
create
Argument
(
props
:
InputValueDefinitionNode
|
Ast.InputValueDefinitionNodeProps
)
:
this
Parameters
props:
InputValueDefinitionNode
|
Ast.InputValueDefinitionNodeProps
Returns
this
create
Location
create
Location
(
location
:
NameNode
|
GQL.DirectiveLocationEnum
)
:
this
Parameters
location:
NameNode
|
GQL.DirectiveLocationEnum
Returns
this
get
Argnames
get
Argnames
(
)
:
Argname
[]
Returns
Argname
[]
get
Argument
get
Argument
(
argname
:
Argname
)
:
InputValueDefinitionApi
Parameters
argname:
Argname
Returns
InputValueDefinitionApi
get
Argument
Default
Value
get
Argument
Default
Value
(
argname
:
Argname
)
:
ValueApi
|
undefined
Parameters
argname:
Argname
Returns
ValueApi
|
undefined
get
Argument
Type
get
Argument
Type
(
argname
:
Argname
)
:
TypeApi
Parameters
argname:
Argname
Returns
TypeApi
get
Arguments
get
Arguments
(
)
:
InputValueDefinitionApi
[]
Returns
InputValueDefinitionApi
[]
get
Arguments
ByTypename
get
Arguments
ByTypename
(
typename
:
Typename
)
:
InputValueDefinitionApi
[]
Parameters
typename:
Typename
Returns
InputValueDefinitionApi
[]
get
Description
get
Description
(
)
:
string
|
undefined
Returns
string
|
undefined
get
Locations
get
Locations
(
)
:
GQL.DirectiveLocationEnum
[]
Returns
GQL.DirectiveLocationEnum
[]
get
Name
get
Name
(
)
:
string
Returns
string
has
Argument
has
Argument
(
argname
:
Argname
)
:
boolean
Parameters
argname:
Argname
Returns
boolean
has
Description
has
Description
(
value
?:
undefined
|
string
)
:
boolean
Parameters
Optional
value:
undefined
|
string
Returns
boolean
has
Location
has
Location
(
location
:
NameNode
|
GQL.DirectiveLocationEnum
)
:
boolean
Parameters
location:
NameNode
|
GQL.DirectiveLocationEnum
Returns
boolean
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
Repeatable
is
Repeatable
(
)
:
boolean
Returns
boolean
remove
Argument
remove
Argument
(
argname
:
Argname
)
:
this
Parameters
argname:
Argname
Returns
this
remove
Location
remove
Location
(
location
:
NameNode
|
GQL.DirectiveLocationEnum
)
:
this
Parameters
location:
NameNode
|
GQL.DirectiveLocationEnum
Returns
this
set
Argument
Defualt
Value
set
Argument
Defualt
Value
(
argname
:
Argname
, props
:
GQL.ValueNode
)
:
this
Parameters
argname:
Argname
props:
GQL.ValueNode
Returns
this
set
Argument
Type
set
Argument
Type
(
argname
:
Argname
, props
:
GQL.TypeNode
|
Ast.TypeNodeProps
)
:
this
Parameters
argname:
Argname
props:
GQL.TypeNode
|
Ast.TypeNodeProps
Returns
this
set
Description
set
Description
(
value
:
string
|
undefined
)
:
this
Parameters
value:
string
|
undefined
Returns
this
set
Locations
set
Locations
(
locations
:
(
"VARIABLE_DEFINITION"
|
"FIELD"
|
"FRAGMENT_SPREAD"
|
"INLINE_FRAGMENT"
|
"FRAGMENT_DEFINITION"
|
"ENUM"
|
"OBJECT"
|
"FIELD_DEFINITION"
|
NameNode
|
"QUERY"
|
"MUTATION"
|
"SUBSCRIPTION"
|
"SCHEMA"
|
"SCALAR"
|
"ARGUMENT_DEFINITION"
|
"INTERFACE"
|
"UNION"
|
"ENUM_VALUE"
|
"INPUT_OBJECT"
|
"INPUT_FIELD_DEFINITION"
)
[]
)
:
this
Parameters
locations:
(
"VARIABLE_DEFINITION"
|
"FIELD"
|
"FRAGMENT_SPREAD"
|
"INLINE_FRAGMENT"
|
"FRAGMENT_DEFINITION"
|
"ENUM"
|
"OBJECT"
|
"FIELD_DEFINITION"
|
NameNode
|
"QUERY"
|
"MUTATION"
|
"SUBSCRIPTION"
|
"SCHEMA"
|
"SCALAR"
|
"ARGUMENT_DEFINITION"
|
"INTERFACE"
|
"UNION"
|
"ENUM_VALUE"
|
"INPUT_OBJECT"
|
"INPUT_FIELD_DEFINITION"
)
[]
Returns
this
set
Name
set
Name
(
value
:
string
)
:
this
Parameters
value:
string
Returns
this
set
Repeatable
set
Repeatable
(
value
?:
boolean
)
:
this
Parameters
Default value
value:
boolean
= true
Returns
this
update
Argument
update
Argument
(
argname
:
Argname
, props
:
Partial
<
InputValueDefinitionNode
|
Ast.InputValueDefinitionNodeProps
>
)
:
this
Parameters
argname:
Argname
props:
Partial
<
InputValueDefinitionNode
|
Ast.InputValueDefinitionNodeProps
>
Returns
this
upsert
Argument
upsert
Argument
(
props
:
InputValueDefinitionNode
|
Ast.InputValueDefinitionNodeProps
)
:
this
Parameters
props:
InputValueDefinitionNode
|
Ast.InputValueDefinitionNodeProps
Returns
this
Globals
Directive
Definition
Api
constructor
_arguments
_locations
node
assert
Kind
create
Argument
create
Location
get
Argnames
get
Argument
get
Argument
Default
Value
get
Argument
Type
get
Arguments
get
Arguments
ByTypename
get
Description
get
Locations
get
Name
has
Argument
has
Description
has
Location
is
Kind
is
Repeatable
remove
Argument
remove
Location
set
Argument
Defualt
Value
set
Argument
Type
set
Description
set
Locations
set
Name
set
Repeatable
update
Argument
upsert
Argument
Generated using
TypeDoc