graphql-tag-pluck

JSON →
library 0.8.7 ·javascript
verified Jun 7, 2026

Extracts GraphQL query/mutation/fragment strings from JavaScript/TypeScript template literals tagged with `graphql-tag` or magic comments like `/* GraphQL */`. Version 0.8.7 — pre-1.0, maintained infrequently. Key differentiator: it powers tools like GraphQL Code Generator to statically extract GraphQL strings for schema validation, codegen, or testing without executing the JS.