Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollographql/graphql-language-service-interface

Package Overview
Dependencies
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollographql/graphql-language-service-interface

Interface to the GraphQL Language Service

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103K
decreased by-60.48%
Maintainers
7
Weekly downloads
 
Created

What is @apollographql/graphql-language-service-interface?

@apollographql/graphql-language-service-interface is a package that provides a set of tools and interfaces for building GraphQL language services. It is designed to help developers create features like auto-completion, error checking, and other language server protocol (LSP) functionalities for GraphQL.

What are @apollographql/graphql-language-service-interface's main functionalities?

Auto-completion

This feature provides auto-completion suggestions for a given GraphQL query based on the schema and the cursor position.

const { getAutocompleteSuggestions } = require('@apollographql/graphql-language-service-interface');
const schema = /* GraphQLSchema object */;
const query = '{ user { na';
const position = { line: 0, character: 10 };
const suggestions = getAutocompleteSuggestions(schema, query, position);
console.log(suggestions);

Diagnostics

This feature provides diagnostic information (such as errors and warnings) for a given GraphQL query based on the schema.

const { getDiagnostics } = require('@apollographql/graphql-language-service-interface');
const schema = /* GraphQLSchema object */;
const query = '{ user { name }';
const diagnostics = getDiagnostics(query, schema);
console.log(diagnostics);

Hover Information

This feature provides hover information for a given GraphQL query based on the schema and the cursor position.

const { getHoverInformation } = require('@apollographql/graphql-language-service-interface');
const schema = /* GraphQLSchema object */;
const query = '{ user { name } }';
const position = { line: 0, character: 7 };
const hoverInfo = getHoverInformation(schema, query, position);
console.log(hoverInfo);

Other packages similar to @apollographql/graphql-language-service-interface

Keywords

FAQs

Package last updated on 04 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc