Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "gql2flow", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Convert a GraphQL Schema to a Flowtype definition", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# GraphQL To Flow Types | ||
*A fork of [gql2ts](https://github.com/avantcredit/gql2ts)* | ||
```shell | ||
yarn global add gql2flow (recommended) | ||
npm i -g gql2flow (legacy) | ||
npm i -g gql2flow | ||
``` | ||
@@ -20,3 +16,7 @@ | ||
-o --output-file [outputFile] name for output file, defaults to graphql-export.flow.js | ||
-m --module-name [moduleName] name for the export module. Types are not wrapped in a module if this is not set | ||
-i --ignored-types <ignoredTypes> names of types to ignore (comma delimited) | ||
-w --whitelist <whitelist> names of types to whitelist (comma delimited) | ||
--null-keys adds a '?' to all keys | ||
--null-values adds a '?' to all values | ||
``` | ||
@@ -23,0 +23,0 @@ |
@@ -139,3 +139,3 @@ 'use strict'; | ||
type.name, | ||
type.enumValues.map(v => `"${v.name}"`) | ||
type.enumValues.map(v => `${v.name}`) | ||
); | ||
@@ -142,0 +142,0 @@ } |
10737