Skip to content

Instantly share code, notes, and snippets.

@rolaveric
Created September 2, 2015 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolaveric/942ff651ef2a30211fd1 to your computer and use it in GitHub Desktop.
Save rolaveric/942ff651ef2a30211fd1 to your computer and use it in GitHub Desktop.
JSON Graph sample for FalcorJS post
{
todosById: {
"44": {
name: "get milk from corner store",
done: false,
prerequisites: [{ $type: "ref", value: ["todosById", 54] }]
},
"54": {
name: "withdraw money from ATM",
done: false,
prerequisites: []
}
},
todos: [
{ $type: "ref", value: ["todosById", 44] },
{ $type: "ref", value: ["todosById", 54] }
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment