/graflow

Work flow tool for GraphQL developers

Primary LanguageCSSMIT LicenseMIT

graflow

Work flow tool for GraphQL developers

Getting started

# install dependencies
npm install

# install nodemon to hot reload
npm install nodemon -g

# serve with hot reload at localhost:3000
# already changed the config in package.json
npm start
# otherwise
nodemon start

Use it

Compare JSON in browser page

Calling interface to compare

Use in your code

  • require or import
// check the right path in your code
const { Schema, Result } = require('src/schema-comparator');

// use import 
import { Schema, Result } from 'src/schema-comparator';
  • get changes result
// get changes of two Schema
let changes = new Schema(newSchema).diff(new Schema(oldSchema));

// filter change info and get result
let result = new Result(changes).getResult();