graphql-central-types
v0.0.13
Published
CLI to generate a central types repository
Downloads
13
Readme
graphql-central-types
CLI for creating a centralized module of GraphQL type definitions, Bindings, queries
Usage
$ npm install -g graphql-central-types
$ types COMMAND
running command...
$ types (-v|--version|version)
graphql-central-types/0.0.13 darwin-x64 node-v10.0.0
$ types --help [COMMAND]
USAGE
$ types COMMAND
...
Commands
types exportSchemas
types exportTypeDefs
types generateSchemaJson
types generateServiceBindings
types help [COMMAND]
types init
types mergeSchemas
types exportSchemas
make all schema root types into an exportable file
USAGE
$ types exportSchemas
EXAMPLE
$ types schemaExports
See code: src/commands/exportSchemas.ts
types exportTypeDefs
Take all typeDefs and make them exportable
USAGE
$ types exportTypeDefs
EXAMPLE
$ types exportTypeDefs
See code: src/commands/exportTypeDefs.ts
types generateSchemaJson
Generate a schema.json file in the queries folder based on the RootType
USAGE
$ types generateSchemaJson
EXAMPLE
$ types generateSchemaJson
See code: src/commands/generateSchemaJson.ts
types generateServiceBindings
Generate GraphQL bindings for your each schema
USAGE
$ types generateServiceBindings
EXAMPLE
$ types init
See code: src/commands/generateServiceBindings.ts
types help [COMMAND]
display help for types
USAGE
$ types help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
types init
Scaffold the directory structure for the types repo
USAGE
$ types init
EXAMPLE
$ types init
See code: src/commands/init.ts
types mergeSchemas
merge all types from the Schemas directory and combine them into a single RootType.ts
USAGE
$ types mergeSchemas
EXAMPLE
$ types merge-schemas
See code: src/commands/mergeSchemas.ts