Optional
argvOptional
clientShould client types be generated? Defaults to false.
Optional
introspectionIntrospection options (only required for client-code generation)
Optional
introspectorOptional
loggerThe logger used in the CLI. Defaults to console.
Optional
noIf true, does not exit the process on error.
Optional
operationsPath to directory of GraphQL operation documents, relative to root. Defaults to "operations".
Optional
outPath to directory to place generated code, relative to root. Defaults to "src/generated".
Optional
readerOptional
rootPath to root directory for code generation. It's recommended to use a root relative to __dirname. Defaults to the current working dir.
Optional
scalarOptional
schemaPath to directory of GraphQL schema documents, relative to root. Defaults to "schema".
Optional
serverShould server types be generated? Defaults to false.
Optional
stitchingOptional
watchShould the CLI run in watch mode? Defaults to false.
Set command-line arguments. Defaults to process.argv.