Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GraphQLLanguageService

Index

Constructors

constructor

  • Parameters

    • cache: GraphQLCache

    Returns GraphQLLanguageService

Properties

_graphQLCache

_graphQLCache: GraphQLCache

_graphQLConfig

_graphQLConfig: GraphQLConfig

Methods

_getDefinitionForFragmentSpread

  • _getDefinitionForFragmentSpread(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>

_getDefinitionForNamedType

  • _getDefinitionForNamedType(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>

getAutocompleteSuggestions

  • getAutocompleteSuggestions(query: string, position: IPosition, filePath: Uri): Promise<Array<CompletionItem>>
  • Parameters

    • query: string
    • position: IPosition
    • filePath: Uri

    Returns Promise<Array<CompletionItem>>

getConfigForURI

  • getConfigForURI(uri: Uri): GraphQLProjectConfig
  • Parameters

    Returns GraphQLProjectConfig

getDefinition

  • Parameters

    • query: string
    • position: IPosition
    • filePath: Uri

    Returns Promise<DefinitionQueryResult | null>

getDiagnostics

  • getDiagnostics(query: string, uri: Uri, isRelayCompatMode?: boolean): Promise<Array<Diagnostic>>
  • Parameters

    • query: string
    • uri: Uri
    • Optional isRelayCompatMode: boolean

    Returns Promise<Array<Diagnostic>>

getDocumentSymbols

  • getDocumentSymbols(document: string, filePath: Uri): Promise<SymbolInformation[]>
  • Parameters

    • document: string
    • filePath: Uri

    Returns Promise<SymbolInformation[]>

getHoverInformation

  • getHoverInformation(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"]>

getOutline

  • getOutline(documentText: string): Promise<Outline | null>
  • Parameters

    • documentText: string

    Returns Promise<Outline | null>

Generated using TypeDoc