@graphistry/falcor-json-graph

A set of factory functions for creating JSON Graph values.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@graphistry/falcor-json-graph
2332.9.105 years ago6 years agoMinified + gzip package size for @graphistry/falcor-json-graph in KB

Readme

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." }