{"id":31792735,"url":"https://github.com/dibble-james/linql","last_synced_at":"2025-10-10T17:16:15.392Z","repository":{"id":41098878,"uuid":"504929321","full_name":"dibble-james/LinQL","owner":"dibble-james","description":"LINQ like access to a GraphQL Server","archived":false,"fork":false,"pushed_at":"2025-09-06T10:01:36.000Z","size":123,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T11:39:00.415Z","etag":null,"topics":["csharp","csharp-sourcegenerator","dotnet","graphql","graphql-client","graphql-dotnet"],"latest_commit_sha":null,"homepage":"","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/dibble-james.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-18T19:09:00.000Z","updated_at":"2025-09-06T09:50:52.000Z","dependencies_parsed_at":"2025-09-06T11:26:09.373Z","dependency_job_id":"8616c52f-634b-4298-aacf-b6b2f5e3f4bd","html_url":"https://github.com/dibble-james/LinQL","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/dibble-james/LinQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibble-james%2FLinQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibble-james%2FLinQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibble-james%2FLinQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibble-james%2FLinQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dibble-james","download_url":"https://codeload.github.com/dibble-james/LinQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dibble-james%2FLinQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002636,"owners_count":26083425,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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","csharp-sourcegenerator","dotnet","graphql","graphql-client","graphql-dotnet"],"created_at":"2025-10-10T17:16:14.105Z","updated_at":"2025-10-10T17:16:15.386Z","avatar_url":"https://github.com/dibble-james.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LinQL\n\n## LINQ-like access to GraphQL endpoints in .Net\n\n[![Nuget](https://github.com/dibble-james/LinQL/actions/workflows/nuget.yml/badge.svg)](https://github.com/dibble-james/LinQL/actions/workflows/nuget.yml)\n\n[![NuGet Badge](https://buildstats.info/nuget/LinQL)](https://www.nuget.org/packages/LinQL/)\n\n### Supported Operations\n\n-   [x] Queries\n-   [x] Mutations\n-   [x] Input Types\n-   [x] Arguments\n-   [x] Interfaces/Unions\n-   [x] Auto-generating types via introspection\n-   [x] Subscriptions\n-   [x] Custom Scalars\n\n#### Coming soon\n\n-   [ ] Strawberry Shake support\n\n### Getting Started using `GraphQL.Client`\n\n1. Install the Nuget package\n\n```bash\ndotnet add package LinQL\ndotnet add package LinQL.GraphQL.Client\n```\n\n2. Reference a `.graphql` SDL in your csproj\n\n```xml\n\u003cItemGroup\u003e\n    \u003cAdditionalFiles Include=\"StarWars.graphql\" LinQLClientNamespace=\"StarWars.Types\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\n3. Create a client:\n```csharp\nusing StarWars.Types;\n\nvar client = new GraphQLHttpClient(\n    \"https://swapi-graphql.netlify.app/.netlify/functions/index\",\n    new SystemTextJsonSerializer(new JsonSerializerOptions().WithKnownInterfaces()))\n    .WithLinQL(new LinQLOptions().WithKnownScalars());\n```\n\n4. Write queries!\n\n```csharp\nusing GraphQL.Client.Abstractions;\nusing StarWars.Types; // As defined by LinQLClientNamespace\n\npublic class StarWarsClient\n{\n    private readonly IGraphQLClient graph;\n\n    public StarWarsClient(IGraphQLClient graph) =\u003e this.graph = graph;\n\n    public async Task\u003cFilm\u003e GetFilmById(string id, CancellationToken cancellationToken)\n        =\u003e await this.graph.SendAsync((Root x) =\u003e x.GetFilm(id), cancellationToken);\n}\n```\n\n### Getting Started using `StrawberryShake`\nComing soon...\n\n### What can I do with it?\nA range of expressions can be converted as demonstrated by [the `TranslationProviderTests`](https://github.com/dibble-james/LinQL/blob/interface-support/LinQL.Tests/Translation/TranslationProviderTests.cs). \nIf you come accross something that doesn't work, please raise an issue or a pull request with a supporting test.\n\nFor more help check out the [docs](https://github.com/dibble-james/LinQL/wiki)\n\n### Troubleshooting\nThere are a couple gotchas with the source generator that can be solved using the guides [here](https://github.com/dibble-james/LinQL/wiki/troubleshooting/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdibble-james%2Flinql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdibble-james%2Flinql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdibble-james%2Flinql/lists"}