{"id":13452466,"url":"https://github.com/sibelius/graphql2ts","last_synced_at":"2025-04-30T14:40:43.655Z","repository":{"id":44021061,"uuid":"196987800","full_name":"sibelius/graphql2ts","owner":"sibelius","description":"Transform .graphql to graphql-js typescript","archived":false,"fork":false,"pushed_at":"2023-01-04T13:46:46.000Z","size":1313,"stargazers_count":41,"open_issues_count":20,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T17:03:26.863Z","etag":null,"topics":["ast","code-first","codemod","graphql"],"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/sibelius.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":"2019-07-15T11:44:10.000Z","updated_at":"2023-03-11T12:21:15.000Z","dependencies_parsed_at":"2023-02-02T14:32:22.794Z","dependency_job_id":null,"html_url":"https://github.com/sibelius/graphql2ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fgraphql2ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fgraphql2ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fgraphql2ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fgraphql2ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sibelius","download_url":"https://codeload.github.com/sibelius/graphql2ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251722790,"owners_count":21633016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ast","code-first","codemod","graphql"],"created_at":"2024-07-31T07:01:24.879Z","updated_at":"2025-04-30T14:40:43.626Z","avatar_url":"https://github.com/sibelius.png","language":"TypeScript","readme":"# graphql2ts\n\n# ![graphql2ts Logo](/img/logo.png)\n\nTransform .graphql files to graphql-js typescript code\n\n## History\nWe first had [graphql-js](https://github.com/graphql/graphql-js) implementation, but developers weren't happy with it.\nSo it was born schema first with [graphql-tools](), [merge-graphql-schemas](https://github.com/Urigo/merge-graphql-schemas), [graphql-modules](https://github.com/Urigo/graphql-modules).\n\nThere is also a codemod to transform your .js files to .graphql files: \n[jscodeshift-graphql-files](https://github.com/withspectrum/jscodeshift-graphql-files).\n\nAfter a lot of time, schema first showed some scaling problems, [Schema First Problems](https://www.prisma.io/blog/the-problems-of-schema-first-graphql-development-x1mn4cb0tyl3), mostly because it does not colocate schema with resolvers, and code is much more powerful to implement abstraction on top of it.\n\nThis codemod exists to helps us move back to code first approach (graphql-js and related tools).\n\nIt will transform a .graphql file and transform in a graphql-js .ts declartion\n\n\n## How to run\n```bash\nnpx graphql2ts myschema.graphql mySchemaOutput.ts\n```\n\n## How to test\n```\nyarn jest\n```\n","funding_links":[],"categories":["TypeScript","Misc"],"sub_categories":["ant-design"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Fgraphql2ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsibelius%2Fgraphql2ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Fgraphql2ts/lists"}