Converts JSON to GraphQL Schema.


Keywords
GraphQL, JSON
License
ISC
Install
npm install jsontographql@0.0.16

Documentation

jsontographql

jsontographql helps in converting json to graphql schema in most cases. In the final output some tweeks may be required.

Support schema format in ES6, TS and Node.

Now you configure resolves in schema lists.

Checkout the example code on Github - https://github.com/jaswantsandhu/json-to-graphql-schema.

Installation

npm install jsontographql

Usage

const {convertToSchema} = require("jsontographql");
const fs = require("fs");
const output = convertToSchema({
    Events : [
        {
            Tickets : {
                name : "Ticket 1",
                seats : [313,131,31,313,131,331,31,3,13,13,1312]
            }
        }
    ]
});
fs.writeFile("./example/sample.js", output, function(){ console.log("schema file created.") });```