gql-query-builder
JSON →A simple JavaScript/TypeScript utility for building GraphQL queries, mutations, and subscriptions from plain JSON objects. Current stable version is 3.8.0, released under MIT license. Enables programmatic construction of GraphQL operations without string concatenation or template literals, supporting variables with required/type/list metadata, aliases, nested fields, operation names, and custom adapters. Ships TypeScript definitions and is compatible with both ESM and CommonJS. Minimal footprint with no runtime dependencies, making it suitable for server-side and client-side usage. Compared to alternatives like graphql-tag, it offers a simpler API focused on object composition rather than template parsing.
Resources
packagegql-query-builder ↗
API endpoints
full doc /v1/registry/gql-query-builder