I highly recommend to have a look at the HotChocolate workshop, everything I used is nicely explained there.
I used StrawberryShake to generate the simple client. All that's is necessary is:
- To have the StrawberryShake nugget package installed
- To have downloaded a schema definition of the server, you want to generate a client for ->
schema.graphql
- Define queries/mutations/subscriptions you want to generate the code for ->
Queries.graphql
The generation takes place upon project build abd the result can be found in a folder called Generated
. Detailed and advanced description can be found here.