🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

jsondir2graphql

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsondir2graphql

Simple script for generating graphql from json

1.0.0
latest
npm
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 01 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts