Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc