CodeBrowser / npm / graphql-tag
graphql-tag@2.12.7
// A JavaScript template literal tag that parses GraphQL queries
$ npm install graphql-tag
downloads/wk
14,720,150
license
MIT
version
2.12.7
published
Jun 17, 2026
What is graphql-tag?
graphql-tag is a JavaScript library that provides a template literal tag for writing and parsing GraphQL queries in your code. It allows you to write GraphQL queries as strings using JavaScript template literals, which are then parsed into a GraphQL AST (abstract syntax tree) that can be used with GraphQL clients and servers. Developers use it to gain syntax highlighting, editor support, and type safety when working with GraphQL queries in JavaScript applications.
Dependencies (1)
Maintainers
jnwng, abernix, phryneas, apollo-bot