Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1015 Bytes

README.rst

File metadata and controls

40 lines (27 loc) · 1015 Bytes

Company GraphQL

GraphQL backend for company-mode.

Introduction

This emacs package provides completion for GraphQL file with your GraphQL server, which host the GraphQL DSL and allow introspection.

misc/demo5.gif

The type, fields, argument definition lookup process is relied on the instrospection specified in introspection.graphql graphql query file, which is used to get json response from the server. Once the JSON response is received, it builds a hashtable, which is futher augmented to help faster definition lookup.

Installation

  1. You can install this package from Melpa

    M-x package-install RET company-graphql RET

  2. add your company-graphql to company-backend

    (add-to-list 'company-backends 'company-graphql)

Usage

  1. open any .graphql file, and edit...