gql-tag
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

/gql-tag/

    Package Sidebar

    Install

    npm i gql-tag

    Weekly Downloads

    2,084

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.01 kB

    Total Files

    9

    Last publish

    Collaborators

    • forsigner