{"repo":"atulmy/gql-query-builder","free":true,"listed":false,"github":"https://github.com/atulmy/gql-query-builder","clone":"git clone https://github.com/atulmy/gql-query-builder.git","description":"🔧 Simple GraphQL Query Builder","language":"TypeScript","stars":410,"topics":["graphql","nodejs","query-builder","generator","query-generator"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GraphQL Query Builder A simple helper function to generate GraphQL queries using plain JavaScript Objects (JSON). Install Requires Node.js = 22 (works in browsers too). The package ships both ESM ( import ) and CommonJS ( require ) builds with TypeScript types included — no extra @types package needed. Usage You can also import query or mutation or subscription individually: Options options is { operation, fields, variables } or an array of options Name Description Type Required Example operation Name of operation to be executed on server String Object Yes getThoughts, createThought { name: 'getUser', alias: 'getAdminUser' } fields Selection of fields Array No ['id', 'name', 'thought'] ['id', 'name', 'thought', { user: ['id', 'email'] }] variables Variables sent to the operation Object No { key: value } eg: { id: 1 } { key: { value: value, required: true, type: GQL type, list: true, name: argument name } eg: { email: { value: \"user@example.com\", required: true }, password: { value: \"123456\", required: true }, secondaryEmails: { value: [], required: false, type: 'String', list: true, name: secondaryEmail } } Adapter An optional second argument adapter is a typescript/javascript class that implements the QueryAdapter , MutationAdapter , or SubscriptionAdapter interface (exported from the package root). If adapter is undefined then the default adapter ( DefaultQueryAdapter , DefaultMutationAdapter , or DefaultSubscriptionAdapter — also exported for reuse) is used. Config Name De","default_branch":null,"files":null,"tree":[],"storefront":"/r/atulmy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/atulmy/gql-query-builder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}