{"id":47061056,"url":"https://github.com/soenneker/soenneker.graphql.generator","last_synced_at":"2026-06-10T05:00:51.626Z","repository":{"id":343535694,"uuid":"1178082434","full_name":"soenneker/soenneker.graphql.generator","owner":"soenneker","description":"A command line tool for generating API clients from GraphQL schemas","archived":false,"fork":false,"pushed_at":"2026-06-08T00:55:56.000Z","size":209,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-08T02:23:15.989Z","etag":null,"topics":["csharp","dotnet","generation","generator","graphql","graphqlgenerator","util"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2026-03-10T17:07:18.000Z","updated_at":"2026-06-08T00:50:45.000Z","dependencies_parsed_at":"2026-04-21T03:00:38.091Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.graphql.generator","commit_stats":null,"previous_names":["soenneker/soenneker.graphql.generator"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.graphql.generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.graphql.generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.graphql.generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.graphql.generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.graphql.generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.graphql.generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.graphql.generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34137570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csharp","dotnet","generation","generator","graphql","graphqlgenerator","util"],"created_at":"2026-03-12T04:02:18.642Z","updated_at":"2026-06-10T05:00:51.533Z","avatar_url":"https://github.com/soenneker.png","language":"C#","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.graphql.generator.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.graphql.generator/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.graphql.generator/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.graphql.generator/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.graphql.generator.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.graphql.generator/)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.GraphQL.Generator\n### A command line tool for generating API clients from GraphQL schemas\n\n## Installation\n\n```\ndotnet add package Soenneker.GraphQL.Generator\n```\n\n## Usage\n\n**Library:** Inject `IGraphQLGenerator` and either:\n\n- call `Generate(schemaContent, config)` to get a `GenerationResult` with generated C# files and type counts\n- call `Generate(schemaContent, config, cancellationToken)` to generate from an in-memory SDL string and write all files to `config.OutputDirectory`\n\n**CLI (gql2cs):** Build and run the `Soenneker.GraphQL.Generator.Cli` project, or run the published `gql2cs` executable:\n\n```bash\ngql2cs --config ./gql2cs.json\n```\n\n### Library example\n\n```csharp\nvar config = new GeneratorConfig\n{\n    Namespace = \"MyCompany.MyApi.GraphQL\",\n    EntryClientName = \"MyApiClient\",\n    OutputDirectory = \"./Generated\"\n};\n\nawait graphQlGenerator.Generate(schemaSdl, config, cancellationToken);\n```\n\nThe generated entry client is written to the output root as `\u003cEntryClientName\u003e.cs` rather than under the `Clients` folder.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.graphql.generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.graphql.generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.graphql.generator/lists"}