diff --git a/src/code/language-support/c-net/client/linq2graphql.md b/src/code/language-support/c-net/client/linq2graphql.md index 45d406a2e6..b63319765c 100644 --- a/src/code/language-support/c-net/client/linq2graphql.md +++ b/src/code/language-support/c-net/client/linq2graphql.md @@ -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 @@ -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 diff --git a/src/content/code/language-support/c-c/client/cppgraphqlgen-clientgen.md b/src/content/code/language-support/c-c/client/cppgraphqlgen-clientgen.md index 1fa222f0ac..c02e6d0466 100644 --- a/src/content/code/language-support/c-c/client/cppgraphqlgen-clientgen.md +++ b/src/content/code/language-support/c-c/client/cppgraphqlgen-clientgen.md @@ -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] Command line options: @@ -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. \ No newline at end of file +`graphqlresponse` for the `graphql::response::Value` implementation. diff --git a/src/content/code/language-support/c-c/server/cppgraphqlgen-schemagen.md b/src/content/code/language-support/c-c/server/cppgraphqlgen-schemagen.md index 338e60caf6..2ab892be18 100644 --- a/src/content/code/language-support/c-c/server/cppgraphqlgen-schemagen.md +++ b/src/content/code/language-support/c-c/server/cppgraphqlgen-schemagen.md @@ -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] Command line options: