graphql-central-types
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

graphql-central-types

CLI for creating a centralized module of GraphQL type definitions, Bindings, queries

oclif Version Downloads/week License

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

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

Readme

Keywords

Package Sidebar

Install

npm i graphql-central-types

Weekly Downloads

0

Version

0.0.13

License

MIT

Unpacked Size

25.5 kB

Total Files

28

Last publish

Collaborators

  • abhiaiyer