You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: A straightforward Linq to GraphQL Client
4
+
url: https://linq2graphql.com
5
+
github: linq2graphql/linq2graphql.client
6
+
---
7
+
8
+
Linq2GraphQL generates C# classes from the GraphQL schema and and togheter with the nuget package Linq2GraphQL.Client it makes it possible to query the server using Linq expressions.
9
+
10
+
A simple query that will get the first 10 orders with the primitive properties of orders and the connected customer
11
+
```csharp
12
+
varorders=awaitsampleClient
13
+
.Query
14
+
.Orders(first: 10)
15
+
.Include(e=>e.Orders.Select(e=>e.Customer))
16
+
.Select(e=>e.Orders)
17
+
.ExecuteAsync();
18
+
```
19
+
20
+
An example mutation where we add a new customer and return the Customer Id.
0 commit comments