All Projects → forsigner → gql-tag

forsigner / gql-tag

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

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].