npm.io
5.7.0 • Published 2 weeks agoCLI

graphql-language-service

Licence
MIT
Version
5.7.0
Deps
3
Size
887 kB
Vulns
0
Weekly
0
Stars
16.9K

graphql-language-service

Changelog | API Docs | Discord

Note: Still mostly experimental, however it depends mostly on stable libraries. Migration Note: As of 3.0.0, the LSP Server command line interface has been moved to graphql-language-service-cli

Purpose

This package brings together all the dependencies for building out web or desktop IDE services for the GraphQL Language.

It is named as such to match the convention of other vscode language services.

Interface

Language Service Protocol (LSP) methods written in TypeScript used by graphql-language-service-server, monaco-graphql and codemirror-graphql.

The goal is to provide methods for creating Language Server Protocol compliant services to be used by an IDE plugin, a browser application or desktop application.

Parser

A standalone online, immutable, dependency-free parser for GraphQL, used by the LSP interface methods.

With GraphQL.js 17, fragment variable definitions and fragment spread arguments can be enabled for parsing, diagnostics, outlines, operation facts, autocomplete, and hover information. Pass experimentalFragmentArguments: true through the relevant language-service options. The feature defaults to false because the connected GraphQL server must also support the experimental syntax.

Utils

Various utilities

Keywords