@graphistry/falcor-json-graph

2.9.10 • Public • Published

falcor-json-graph

A set of factory functions for creating JSON Graph values.

var jsonGraph = require('falcor-json-graph');

var atom = jsonGraph.atom("a string wrapped in an atom"); // creates { $type: "atom", value: "a string wrapped in an atom" }
var ref = jsonGraph.ref("todos[0].name"); // creates { $type: "ref", value: ["todos", 0, "name"] }
var error = jsonGraph.error("something bad happened."); // creates { $type: "error", value: "something bad happened." }

Package Sidebar

Install

npm i @graphistry/falcor-json-graph

Weekly Downloads

318

Version

2.9.10

License

Apache 2.0

Last publish

Collaborators

  • mj3cheun
  • tcook_graphistry
  • exrhizo-graphistry
  • graphistry-deploy
  • lmeyerov