Nighttime Peanut Migrations
    Wondering what’s next for npm?Check out our public roadmap! »

    graphql-language-service
    TypeScript icon, indicating that this package has built-in type declarations

    3.1.4 • Public • Published

    graphql-language-service

    API Docs

    Note: Still mostly experimental, however it depends mostly on stable libraries. Migration Note: As of 3.0.0, the LSP 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 languageservices.

    It also provides a new LanguageService class as browser/web-worker runtime friendly alternative to the one that lives in graphql-language-service-interface, that utilizes the same underlying functions, meaning most fixes and improvements from here on out will continue to be reflected by both implementations.

    Usage

    Instantiates with these optional parameters:

    type GraphQLLanguageConfig = {
      parser?: typeof parse;
      schemaLoader?: typeof defaultSchemaLoader;
      schemaBuilder?: typeof defaultSchemaBuilder;
      schemaConfig: SchemaConfig;
    };

    this is the minimum configuration required:

    const languageService = new LanguageService({
      schemaConfig: { uri: 'https://my/schema' },
    });

    Install

    npm i graphql-language-service

    DownloadsWeekly Downloads

    77,033

    Version

    3.1.4

    License

    MIT

    Unpacked Size

    52.6 kB

    Total Files

    44

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar