{"id":14976071,"url":"https://github.com/nilportugues/graphql-data-access-generator","last_synced_at":"2026-03-07T14:33:02.321Z","repository":{"id":57701292,"uuid":"501392091","full_name":"nilportugues/graphql-data-access-generator","owner":"nilportugues","description":"Generate all queries, mutation, subscriptions, fragments and types for any GraphQL schema","archived":false,"fork":false,"pushed_at":"2022-06-15T20:46:45.000Z","size":85,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T15:04:10.221Z","etag":null,"topics":["code-generation","gql","gqlgen","graphl-typescript","graphql","graphql-code-generator","graphql-fragments","graphql-query-generator","graphql-schema","graphql-subcriptions","graphql-types","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilportugues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-08T19:55:23.000Z","updated_at":"2022-06-09T14:57:19.000Z","dependencies_parsed_at":"2022-08-29T04:31:34.029Z","dependency_job_id":null,"html_url":"https://github.com/nilportugues/graphql-data-access-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nilportugues/graphql-data-access-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fgraphql-data-access-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fgraphql-data-access-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fgraphql-data-access-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fgraphql-data-access-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilportugues","download_url":"https://codeload.github.com/nilportugues/graphql-data-access-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fgraphql-data-access-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30217523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","gql","gqlgen","graphl-typescript","graphql","graphql-code-generator","graphql-fragments","graphql-query-generator","graphql-schema","graphql-subcriptions","graphql-types","typescript"],"created_at":"2024-09-24T13:53:15.304Z","updated_at":"2026-03-07T14:33:02.287Z","avatar_url":"https://github.com/nilportugues.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Data Access Generator\n\nThis project's goal is to generate all queries, mutation, subscriptions, fragments and types for any GraphQL schema.\n\n## Installation\n\nThis is a development tool, so make sure you install it with `--save-dev` or `-D`.\n\n```\nnpm install graphql-data-access-generator --save-dev\n\nyarn add -D graphql-data-access-generator\n```\n\n## Demo\nAll code generation can be demo'd by looking into the [example directory](https://github.com/nilportugues/graphql-data-access-generator/tree/main/example)\n\n## Usage\n\n1. Provide a `graphqlUrl` and optionally the required headers to authenticate. \n2. Provide a `schemaFile` location to download the current GraphQL schema.\n3. Provide a `destinationPath` where all generated code will be outputed (it will be TypeScript). \n\n```js\nconst generator = require('graphql-data-access-generator')\n\nasync function main () {\n  await generator({\n    graphqlUrl: \"http://0.0.0.0:8055/graphql\",\n    schemaFile: \"/tmp/schema.graphql\",\n    headers: { \n      \"Authorization\": \"Bearer graphql-admin\" \n    },\n    destinationPath: __dirname + \"/generated\",\n  });\n}\n\nmain()\n```\n\n## Distribution file\n\nThe current bundle size for this repository is `3.9MB`. All of it belongs to `dist/index.js`. \n\nThe reason behind this file size is we're using `@vercel/ncc` to generate one file with all the dependencies embedded to the generated `dist/index.js` file. This makes this package have no real dependencies when being installed in your project.\n\nWorking with this approach enables us to use this piece of software today and in the future, as we can guarantee it will not collide with different library versions and breaking changes that could potentally be introduced in the future.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fgraphql-data-access-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilportugues%2Fgraphql-data-access-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fgraphql-data-access-generator/lists"}