Search
Preparing search index...
The search index is not available
GraphQL Official LSP Documentation
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
graphql-language-service-server
GraphQLLanguageService
Class GraphQLLanguageService
Hierarchy
GraphQLLanguageService
Index
Constructors
constructor
Properties
_graphQLCache
_graphQLConfig
_logger
Methods
_get
Definition
For
Argument
_get
Definition
For
Field
_get
Definition
For
Fragment
Spread
_get
Definition
For
Named
Type
get
Autocomplete
Suggestions
get
Config
ForURI
get
Definition
get
Diagnostics
get
Document
Symbols
get
Hover
Information
get
Outline
Constructors
constructor
new
GraphQLLanguage
Service
(
cache
:
GraphQLCache
, logger
:
Logger
)
:
GraphQLLanguageService
Parameters
cache:
GraphQLCache
logger:
Logger
Returns
GraphQLLanguageService
Properties
_graphQLCache
_graphQLCache
:
GraphQLCache
_graphQLConfig
_graphQLConfig
:
GraphQLConfig
_logger
_logger
:
Logger
Methods
_get
Definition
For
Argument
_get
Definition
For
Argument
(
query
:
string
, _ast
:
DocumentNode
, _node
:
ArgumentNode
, _filePath
:
Uri
, projectConfig
:
GraphQLProjectConfig
, position
:
IPosition
)
:
Promise
<
null
|
DefinitionQueryResult
>
Parameters
query:
string
_ast:
DocumentNode
_node:
ArgumentNode
_filePath:
Uri
projectConfig:
GraphQLProjectConfig
position:
IPosition
Returns
Promise
<
null
|
DefinitionQueryResult
>
_get
Definition
For
Field
_get
Definition
For
Field
(
query
:
string
, _ast
:
DocumentNode
, _node
:
FieldNode
, _filePath
:
Uri
, projectConfig
:
GraphQLProjectConfig
, position
:
IPosition
)
:
Promise
<
null
|
DefinitionQueryResult
>
Parameters
query:
string
_ast:
DocumentNode
_node:
FieldNode
_filePath:
Uri
projectConfig:
GraphQLProjectConfig
position:
IPosition
Returns
Promise
<
null
|
DefinitionQueryResult
>
_get
Definition
For
Fragment
Spread
_get
Definition
For
Fragment
Spread
(
query
:
string
, ast
:
DocumentNode
, node
:
FragmentSpreadNode
, filePath
:
Uri
, projectConfig
:
GraphQLProjectConfig
)
:
Promise
<
DefinitionQueryResponse
|
null
>
Parameters
query:
string
ast:
DocumentNode
node:
FragmentSpreadNode
filePath:
Uri
projectConfig:
GraphQLProjectConfig
Returns
Promise
<
DefinitionQueryResponse
|
null
>
_get
Definition
For
Named
Type
_get
Definition
For
Named
Type
(
query
:
string
, ast
:
DocumentNode
, node
:
NamedTypeNode
, filePath
:
Uri
, projectConfig
:
GraphQLProjectConfig
)
:
Promise
<
DefinitionQueryResponse
|
null
>
Parameters
query:
string
ast:
DocumentNode
node:
NamedTypeNode
filePath:
Uri
projectConfig:
GraphQLProjectConfig
Returns
Promise
<
DefinitionQueryResponse
|
null
>
get
Autocomplete
Suggestions
get
Autocomplete
Suggestions
(
query
:
string
, position
:
IPosition
, filePath
:
Uri
)
:
Promise
<
Array
<
CompletionItem
>
>
Parameters
query:
string
position:
IPosition
filePath:
Uri
Returns
Promise
<
Array
<
CompletionItem
>
>
get
Config
ForURI
get
Config
ForURI
(
uri
:
Uri
)
:
undefined
|
GraphQLProjectConfig
Parameters
uri:
Uri
Returns
undefined
|
GraphQLProjectConfig
get
Definition
get
Definition
(
query
:
string
, position
:
IPosition
, filePath
:
Uri
)
:
Promise
<
DefinitionQueryResponse
|
null
>
Parameters
query:
string
position:
IPosition
filePath:
Uri
Returns
Promise
<
DefinitionQueryResponse
|
null
>
get
Diagnostics
get
Diagnostics
(
document
:
string
, uri
:
Uri
, isRelayCompatMode
?:
undefined
|
false
|
true
)
:
Promise
<
Array
<
Diagnostic
>
>
Parameters
document:
string
uri:
Uri
Optional
isRelayCompatMode:
undefined
|
false
|
true
Returns
Promise
<
Array
<
Diagnostic
>
>
get
Document
Symbols
get
Document
Symbols
(
document
:
string
, filePath
:
Uri
)
:
Promise
<
SymbolInformation
[]
>
Parameters
document:
string
filePath:
Uri
Returns
Promise
<
SymbolInformation
[]
>
get
Hover
Information
get
Hover
Information
(
query
:
string
, position
:
IPosition
, filePath
:
Uri
, options
?:
HoverConfig
)
:
Promise
<
Hover
[
"contents"
]
>
Parameters
query:
string
position:
IPosition
filePath:
Uri
Optional
options:
HoverConfig
Returns
Promise
<
Hover
[
"contents"
]
>
get
Outline
get
Outline
(
documentText
:
string
)
:
Promise
<
Outline
|
null
>
Parameters
documentText:
string
Returns
Promise
<
Outline
|
null
>
Globals
cm6-
graphql
codemirror-
graphql
graphiql
graphiql-
plugin-
code-
exporter
graphiql-
plugin-
explorer
graphiql-
react
graphiql-
toolkit
graphql-
language-
service
graphql-
language-
service-
cli
graphql-
language-
service-
server
monaco-
graphql
vscode-
graphql
vscode-
graphql-
execution
vscode-
graphql-
syntax
cm6-
graphql
codemirror-
graphql
graphiql
graphiql-
plugin-
code-
exporter
graphiql-
plugin-
explorer
graphiql-
react
graphiql-
toolkit
graphql-
language-
service
graphql-
language-
service-
cli
graphql-
language-
service-
server
GraphQLLanguage
Service
constructor
_graphQLCache
_graphQLConfig
_logger
_get
Definition
For
Argument
_get
Definition
For
Field
_get
Definition
For
Fragment
Spread
_get
Definition
For
Named
Type
get
Autocomplete
Suggestions
get
Config
ForURI
get
Definition
get
Diagnostics
get
Document
Symbols
get
Hover
Information
get
Outline
monaco-
graphql
vscode-
graphql
vscode-
graphql-
execution
vscode-
graphql-
syntax
Generated using
TypeDoc