vscode-graphql-syntax

1.0.2 • Public • Published

GraphQL Syntax Support

Adds basic GraphQL highlighting and language support such as bracket matching.

Supports .graphql/.gql/.graphqls highlighting

Supported Languages

Javascript & Typescript

accepted template strings and expression patterns

gql`{ id }`
graphql`{ id }`
gql<MyType>`{ id }`
gql.experimental`{ id }`
gql('{ id }')
graphql('{ id }')
gql<MyType>('{ id }')
gql.experimental('{ id }')

accepted comment-delimited patterns

/* GraphiQL */
const query = `
 { id }
`
const query = `#graphql
 { id }
`
  • ReasonML/ReScript (%graphql() )
  • Python
  • PHP
  • Markdown for graphql\`, GraphQL``andgql``` (even when deeply nested!)

For full autocompletion, validation and other features, you can install GraphQL.vscode-graphql, which depends on this extension

Readme

Keywords

none

Package Sidebar

Install

npm i vscode-graphql-syntax

Weekly Downloads

3

Version

1.0.2

License

none

Unpacked Size

42.8 kB

Total Files

12

Last publish

Collaborators

  • benjie
  • acao