gql-tag

gql-tag like but not convert to AST

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gql-tag
1301.0.14 years ago4 years agoMinified + gzip package size for gql-tag in KB

Readme

gql-tag
npm Build Status Coverage Status npm GitHub license
An useful utilities, help to highlight、format、auto-compelete Graphql code in you Editor.

Installation

yarn add gql-tag

Usage

```js import gql from 'gql-tag'
const QUERYTODO = ` query Todos($id: ID) {
todo(id: 5) {
  id
  title
}
} `
const GET
TODOGQL = gql` query Todos($id: ID) {
todo(id: 5) {
  id
  title
}
} `
expect(QUERY
TODO).toBe(GETTODOGQL) // pass
````

License

MIT License