{"id":15805494,"url":"https://github.com/jonaskello/graphql-codegen-issue2","last_synced_at":"2025-10-19T15:02:23.580Z","repository":{"id":81765518,"uuid":"178885451","full_name":"jonaskello/graphql-codegen-issue2","owner":"jonaskello","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-02T14:02:22.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T02:21:23.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jonaskello.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-01T14:51:37.000Z","updated_at":"2019-04-02T14:02:24.000Z","dependencies_parsed_at":"2023-03-12T14:01:55.909Z","dependency_job_id":null,"html_url":"https://github.com/jonaskello/graphql-codegen-issue2","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/jonaskello%2Fgraphql-codegen-issue2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskello%2Fgraphql-codegen-issue2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskello%2Fgraphql-codegen-issue2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskello%2Fgraphql-codegen-issue2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaskello","download_url":"https://codeload.github.com/jonaskello/graphql-codegen-issue2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246550114,"owners_count":20795440,"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":[],"created_at":"2024-10-05T02:21:15.187Z","updated_at":"2025-10-19T15:02:18.538Z","avatar_url":"https://github.com/jonaskello.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to test\n\nGenerate from joined schema:\n\n```bash\n$ yarn graphql\n```\n\nGenerates this incomplete type for `FooBar` (`Zoo` is missing in the union):\n\n```ts\n// ... other code\nexport type FooBar = Foo | Bar;\n// ... other code\n```\n\nPrinting the joined schema gives the correct type of `FooBar` with `Zoo` included so it seems the joining works:\n\n```bash\n$ yarn print\n```\n\n```graphql\ntype Bar {\n  id: ID!\n}\n\ntype Foo {\n  id: ID!\n}\n\nunion FooBar = Foo | Bar | Zoo\n\ntype Query {\n  fooBar: [FooBar!]!\n}\n\ntype Zoo {\n  id: ID!\n}\n```\n\nAlso using the `typescript` plugin programatically gives the correct result:\n\n```bash\n$ yarn prog\n```\n\n```ts\n// ... other code\nexport type FooBar = Foo | Bar | Zoo;\n// ... other code\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskello%2Fgraphql-codegen-issue2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaskello%2Fgraphql-codegen-issue2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskello%2Fgraphql-codegen-issue2/lists"}