schesign-js-graph-utils

0.1.24 • Public • Published

Schesign graph utils

Schesign allows you to build and host data designs. Data designs can be accessed through the API as a graph in JSON format. See schesign-js-api for info on retrieving a graph.

This library contains the graph spec and various utilities to programatically generate and manage a schesign graph.

Install

npm install schesign-js-graph-utils --save

Generating a design

  import { Design, ClassNode, PropertyNode } from 'schesign-js-graph-utils'

  const design = new Design()

  const product = new ClassNode({ label: 'Product' })
  const user = new ClassNode({ label: 'User' })
  const shoppingCart = new ClassNode({ label: 'ShoppingCart' })

  const upc = new PropertyNode({ label: 'upc' })

Notes

  • should add a test for recursive nested objects
  • rangeTypes.Text should take more params for types

Dependents (2)

Package Sidebar

Install

npm i schesign-js-graph-utils

Weekly Downloads

9

Version

0.1.24

License

MIT

Last publish

Collaborators

  • csenn