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
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
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
<
DefinitionQueryResult
|
null
>
Parameters
query:
string
ast:
DocumentNode
node:
FragmentSpreadNode
filePath:
Uri
projectConfig:
GraphQLProjectConfig
Returns
Promise
<
DefinitionQueryResult
|
null
>
_get
Definition
For
Named
Type
_get
Definition
For
Named
Type
(
query
:
string
, ast
:
DocumentNode
, node
:
NamedTypeNode
, filePath
:
Uri
, projectConfig
:
GraphQLProjectConfig
)
:
Promise
<
DefinitionQueryResult
|
null
>
Parameters
query:
string
ast:
DocumentNode
node:
NamedTypeNode
filePath:
Uri
projectConfig:
GraphQLProjectConfig
Returns
Promise
<
DefinitionQueryResult
|
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
<
DefinitionQueryResult
|
null
>
Parameters
query:
string
position:
IPosition
filePath:
Uri
Returns
Promise
<
DefinitionQueryResult
|
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
GraphQLCache
Message
Processor
find
GraphQLTags
get
GraphQLCache
parse
Document
start
Server
GraphQLCache
GraphQLLanguage
Service
constructor
_graphQLCache
_graphQLConfig
_logger
_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
Logger
Message
Processor
Noop
Logger
Server
Options
Load
Config
Options
Mapped
Server
Options
Range
Mapper
Source
Parser
Supported
Extensions
Supported
Extensions
Enum
BABEL_
PLUGINS
DEFAULT_
SUPPORTED_
EXTENSIONS
DEFAULT_
SUPPORTED_
GRAPHQL_
EXTENSIONS
astro
Parser
babel
Parser
ecma
Parser
find
GraphQLTags
get
GraphQLCache
parse
Document
parse
VueSFC
start
Server
string
ToHash
svelte
Parser
ts
Parser
vue
Parser
PARSER_
OPTIONS
TAG_
MAP
monaco-
graphql
vscode-
graphql
vscode-
graphql-
execution
vscode-
graphql-
syntax
Generated using
TypeDoc