Search
Preparing search index...
The search index is not available
graphql-extra
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
SchemaDefinitionApi
Class SchemaDefinitionApi
API for GraphQL
SchemaDefinitionNode
Hierarchy
KindAssertionMixin
<
this
>
&
DescriptionMixin
<
this
>
&
DirectivesMixin
<
this
>
&
OperationTypeDefinitionMixin
<
this
>
SchemaDefinitionApi
Index
Constructors
constructor
Properties
_directives
_operation
Types
node
Methods
assert
Kind
create
Directive
create
Operation
Type
get
Description
get
Directive
get
Directive
Names
get
Directives
get
Mutation
get
Mutation
Typename
get
Operation
Type
get
Operation
Typename
get
Operation
Typenames
get
Operation
Types
get
Query
get
Query
Typename
get
Subscription
get
Subscription
Typename
has
Description
has
Directive
has
Operation
Type
is
Kind
remove
Directive
remove
Operation
Type
set
Description
update
Directive
update
Operation
Type
upsert
Directive
upsert
Operation
Type
Constructors
constructor
new
Schema
Definition
Api
(
node
:
SchemaDefinitionNode
)
:
SchemaDefinitionApi
Parameters
node:
SchemaDefinitionNode
Returns
SchemaDefinitionApi
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
_operation
Types
_operation
Types
:
Crud
<
OperationTypeDefinitionNode
,
OperationTypeDefinitionApi
,
{
operation
:
GQL.OperationTypeNode
;
type
:
NamedTypeNodeProps
|
NamedTypeNode
}
,
"query"
|
"mutation"
|
"subscription"
>
= new Crud({parent: this.node,key: 'operationTypes',factory: Ast.operationTypeDefinitionNode,api: Api.operationTypeDefinitionApi,matcher: (node): GQL.OperationTypeNode => node.operation,})
Readonly
node
node
:
SchemaDefinitionNode
Methods
assert
Kind
assert
Kind<K>
(
kind
:
K
)
:
KindToApiType
<
K
>
Type parameters
K
:
GQL.KindEnum
Parameters
kind:
K
Returns
KindToApiType
<
K
>
create
Directive
create
Directive
(
props
:
Ast.DirectiveNodeProps
|
DirectiveNode
)
:
this
Parameters
props:
Ast.DirectiveNodeProps
|
DirectiveNode
Returns
this
create
Operation
Type
create
Operation
Type
(
props
:
OperationTypeDefinitionNode
|
Ast.OperationTypeDefinitionNodeProps
)
:
this
Parameters
props:
OperationTypeDefinitionNode
|
Ast.OperationTypeDefinitionNodeProps
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
Mutation
get
Mutation
(
)
:
OperationTypeDefinitionApi
|
undefined
Returns
OperationTypeDefinitionApi
|
undefined
get
Mutation
Typename
get
Mutation
Typename
(
)
:
Typename
|
undefined
Returns
Typename
|
undefined
get
Operation
Type
get
Operation
Type
(
operation
:
GQL.OperationTypeNode
)
:
OperationTypeDefinitionApi
|
undefined
Parameters
operation:
GQL.OperationTypeNode
Returns
OperationTypeDefinitionApi
|
undefined
get
Operation
Typename
get
Operation
Typename
(
operation
:
GQL.OperationTypeNode
)
:
string
|
undefined
Parameters
operation:
GQL.OperationTypeNode
Returns
string
|
undefined
get
Operation
Typenames
get
Operation
Typenames
(
)
:
Typename
[]
Returns
Typename
[]
get
Operation
Types
get
Operation
Types
(
)
:
OperationTypeDefinitionApi
[]
Returns
OperationTypeDefinitionApi
[]
get
Query
get
Query
(
)
:
OperationTypeDefinitionApi
|
undefined
Returns
OperationTypeDefinitionApi
|
undefined
get
Query
Typename
get
Query
Typename
(
)
:
Typename
|
undefined
Returns
Typename
|
undefined
get
Subscription
get
Subscription
(
)
:
OperationTypeDefinitionApi
|
undefined
Returns
OperationTypeDefinitionApi
|
undefined
get
Subscription
Typename
get
Subscription
Typename
(
)
:
Typename
|
undefined
Returns
Typename
|
undefined
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
Operation
Type
has
Operation
Type
(
operation
:
GQL.OperationTypeNode
)
:
boolean
Parameters
operation:
GQL.OperationTypeNode
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
>
remove
Directive
remove
Directive
(
directivename
:
Directivename
)
:
this
Parameters
directivename:
Directivename
Returns
this
remove
Operation
Type
remove
Operation
Type
(
operation
:
GQL.OperationTypeNode
)
:
this
Parameters
operation:
GQL.OperationTypeNode
Returns
this
set
Description
set
Description
(
value
:
string
|
undefined
)
:
this
Parameters
value:
string
|
undefined
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
Operation
Type
update
Operation
Type
(
operation
:
GQL.OperationTypeNode
, props
:
Partial
<
OperationTypeDefinitionNode
|
Ast.OperationTypeDefinitionNodeProps
>
)
:
this
Parameters
operation:
GQL.OperationTypeNode
props:
Partial
<
OperationTypeDefinitionNode
|
Ast.OperationTypeDefinitionNodeProps
>
Returns
this
upsert
Directive
upsert
Directive
(
props
:
Ast.DirectiveNodeProps
|
DirectiveNode
)
:
this
Parameters
props:
Ast.DirectiveNodeProps
|
DirectiveNode
Returns
this
upsert
Operation
Type
upsert
Operation
Type
(
props
:
OperationTypeDefinitionNode
|
Ast.OperationTypeDefinitionNodeProps
)
:
this
Parameters
props:
OperationTypeDefinitionNode
|
Ast.OperationTypeDefinitionNodeProps
Returns
this
Globals
Schema
Definition
Api
constructor
_directives
_operation
Types
node
assert
Kind
create
Directive
create
Operation
Type
get
Description
get
Directive
get
Directive
Names
get
Directives
get
Mutation
get
Mutation
Typename
get
Operation
Type
get
Operation
Typename
get
Operation
Typenames
get
Operation
Types
get
Query
get
Query
Typename
get
Subscription
get
Subscription
Typename
has
Description
has
Directive
has
Operation
Type
is
Kind
remove
Directive
remove
Operation
Type
set
Description
update
Directive
update
Operation
Type
upsert
Directive
upsert
Operation
Type
Generated using
TypeDoc
API for GraphQL
SchemaDefinitionNode