[x] generate <url | schema path> Generate code based on the provided schema (supports URL, .schema, .json)
[x] --react <boolean> Optionally generate react utilities, should default to true
[x] --outDir Control where output is generated
[x] --include <TypeA, TypeB, TypeC> Control which GraphQL types are used to generate models
[x] --exclude <TypeA, TypeB, TypeC> Opposite of --include, controls which types are ignored
[x] --idField <field name> Control which field within the GraphQL schema is used as the unique identifier (currently defaults to id)
~- [ ] --lang <ts | js | ...> Determine the language used in the output~ Deferring to later issue
generate <url | schema path>
Generate code based on the provided schema (supports URL,.schema
,.json
)--react <boolean>
Optionally generate react utilities, should default totrue
--outDir
Control where output is generated--include <TypeA, TypeB, TypeC>
Control which GraphQL types are used to generate models--exclude <TypeA, TypeB, TypeC>
Opposite of--include
, controls which types are ignored--idField <field name>
Control which field within the GraphQL schema is used as the unique identifier (currently defaults toid
) ~- [ ]--lang <ts | js | ...>
Determine the language used in the output~ Deferring to later issue