Skip to content

Instantly share code, notes, and snippets.

@jeremykendall
Created February 27, 2015 16:38
Show Gist options
  • Select an option

  • Save jeremykendall/455ac49a71c3f26f1c49 to your computer and use it in GitHub Desktop.

Select an option

Save jeremykendall/455ac49a71c3f26f1c49 to your computer and use it in GitHub Desktop.
Graph Story Neo4j nodejs example - seraph
// Run from the command line with `node example.js`
// Replace the example URL with your own from https://console.graphstory.com/graphs/list
var db_url = "https://user:pass@example-url.do-stories.graphstory.com:7473";
var db = require("seraph")(db_url);
db.save({ name: "Test-Man", age: 40 }, function(err, node) {
if (err) throw err;
console.log("Test-Man inserted.");
db.delete(node, function(err) {
if (err) throw err;
console.log("Test-Man away!");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment