Created
February 27, 2015 16:38
-
-
Save jeremykendall/455ac49a71c3f26f1c49 to your computer and use it in GitHub Desktop.
Graph Story Neo4j nodejs example - seraph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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