jsondir2graphql

1.0.0 • Public • Published

jsondir2graphql

Generate graphql type definitions from a directory of json files using @walmartlabs/json-to-simple-graphql-schema

Usage

npx jsondir2graphql test/fixtures/ test/schema/schema.graphql

Example

Input

foo.json

{
    "foo": "1"
}

bar.json

{
    "bar": "1"
}

Output

type Foo {
  foo: String
}
type Bar {
  bar: String
}

Notes

Requires Node 14 for top level await and ES modules.

Readme

Keywords

none

Package Sidebar

Install

npm i jsondir2graphql

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.82 kB

Total Files

6

Last publish

Collaborators

  • matthoffner