Socket
Socket
Sign inDemoInstall

jsondir2graphql

Package Overview
Dependencies
26
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jsondir2graphql

Simple script for generating graphql from json


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Install size
790 kB
Created
Weekly downloads
 

Readme

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

Last updated on 01 Nov 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc