Skip to content

Update ZeroQL GraphQL client description #1470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/content/code/language-support/c-net/client/zeroql.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ You can use ZeroQL to:
- Generate a C# client from GraphQL schema.
- Generate and execute graphql queries from your C# code.
- Don't require writing GraphQL manually.
- Supports .Net Core, .Net Framework, Xamarin, Unity apps.

```csharp
var response = await client.Query(o => o.Me(o => new { o.Id, o.FirstName, o.LastName }));
var userId = 10;
var response = await qlClient.Query(q => q
.User(userId, o => new
{
o.Id,
o.FirstName,
o.LastName
}));
```