update-schema
v0.2.0
Published
A module and cli tool for updating graphql schema
Downloads
3
Maintainers
Readme
update-schema
A module and cli tool for updating graphql schema
WIP!
Install
$ npm install update-schema
Usage
var updateSchema = require('update-schema');
var Schema = require('./data/schema').Schema;
updateSchema(Schema, options);
//=>
CLI
$ npm install -g update-schema
CLI Usage
$ update-schema --help
Usage
update-schema [file-path]
Example
update-schema schema.js
update-schema path/schema.js
Options
--print, -p Determine whether print or not. Default: true
--out-dir, -d Output directory. Default: __dirname
API
updateSchema(schema, [options])
schema
Required
Type: GraphQLSchema
GraphQL Schema.
options
Type: boolean
Default: false
Determine whether print or not.
outDir
Type: string
Default: __dirname
Output directory.
License
MIT © C.T. Lin