Skip to content

Instantly share code, notes, and snippets.

@coderoshi
Created March 19, 2012 17:25
Show Gist options
  • Save coderoshi/2120186 to your computer and use it in GitHub Desktop.
Save coderoshi/2120186 to your computer and use it in GitHub Desktop.
Neo4j REST NodeJS CoffeeScript
neo4j = require('./caching_client').createClient
port: process.env.NEO4J_PORT
host: process.env.NEO4J_HOST
username : process.env.NEO4J_LOGIN
password : process.env.NEO4J_PASSWORD
neo4j.runCypher 'START x = node(0) RETURN x', (err, output, res)->
if err
console.log err.message
else
console.log output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment