Skip to content

miqvo/graphql-codegen-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSharp template

Experimental GraphQL code generator template for C# projects using instructions provided at this site.

This template reads the introspection JSON of a GraphQL schema as an input. The user has to also mention the output folder where the file has to be written

The name of the output file can be defined in src/config.ts

Usage

For executing the template, install graphql-code-generator first. See the install instructions here or you can go through the steps below.

Open command prompt and go to working directory.

Execute yarn add -D graphql-code-generator@v0.10.3 graphql@0.13.2 graphql-codegen-introspection-template@0.10.3

Clone graphql-codegen-csharp in this directory

cd graphql-codegen-csharp

npm install

Execute a yarn build from the template folder so that a dist folder is created in it.

cd ..

Execute yarn gql-gen --schema "graphQL schema JSON path" --template graphql-codegen-csharp --out "output folder path".

Other CLI Flag options are listed here.

About

Experimental GraphQL code generator template for C# projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 74.3%
  • TypeScript 25.7%