Skip to content

An useful utilities, help to highlight、format、auto-compelete Graphql code in you Editor.

License

Notifications You must be signed in to change notification settings

ink-zone/gql-tag

Repository files navigation

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

import gql from 'gql-tag'


const QUERY_TODO = `
  query Todos($id: ID) {
    todo(id: 5) {
      id
      title
    }
  }
`

const GET_TODO_GQL = gql`
  query Todos($id: ID) {
    todo(id: 5) {
      id
      title
    }
  }
`

expect(QUERY_TODO).toBe(GET_TODO_GQL) // pass

License

MIT License

About

An useful utilities, help to highlight、format、auto-compelete Graphql code in you Editor.

Resources

License

Stars

Watchers

Forks

Packages

No packages published