0.0.16 • Published 7 years ago

jsontographql v0.0.16

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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.") });```
0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago