Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/code/language-support/c-net/client/linq2graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ github: linq2graphql/linq2graphql.client
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.

A simple query that will get the first 10 orders with the primitive properties of orders and the connected customer

```csharp
var orders = await sampleClient
.Query
Expand All @@ -18,6 +19,7 @@ var orders = await sampleClient
```

An example mutation where we add a new customer and return the Customer Id.

```csharp
var customerId = await sampleClient
.Mutation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ github: microsoft/cppgraphqlgen

The `clientgen` utility is based on `schemagen` and shares the same external dependencies. The command line arguments
are almost the same, except it takes an extra file for the request document and there is no equivalent to `--stubs`:

```
Usage: clientgen [options] <schema file> <request file> <output filename prefix> <output namespace>
Command line options:
Expand All @@ -31,4 +32,4 @@ single operation from the request document by specifying the `--operation` (or `

The generated code depends on the `graphqlclient` library for serialization of built-in types. If you link the generated
code, you'll also need to link `graphqlclient`, `graphqlpeg` for the pre-parsed, pre-validated request AST, and
`graphqlresponse` for the `graphql::response::Value` implementation.
`graphqlresponse` for the `graphql::response::Value` implementation.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ github: microsoft/cppgraphqlgen

Run `schemagen -?` to get a list of options. Many of the files in the [samples](https://github.com/microsoft/cppgraphqlgen/tree/main/samples) directory were generated
with `schemagen`, you can look at [samples/learn/schema/CMakeLists.txt](https://github.com/microsoft/cppgraphqlgen/blob/main/samples/learn/schema/CMakeLists.txt) for an example of how to call it with the canonical Star Wars sample [schema](https://github.com/microsoft/cppgraphqlgen/blob/main/samples/learn/schema/schema.learn.graphql):

```
Usage: schemagen [options] <schema file> <output filename prefix> <output namespace>
Command line options:
Expand Down
Loading