Skip to content
Jean-Baptiste Musso edited this page Oct 28, 2013 · 1 revision

Connecting to the database

var mogwai = require("mogwai");

var settings = {
  host: "localhost",
  port: 8182,
  graph: "graph",
  client: "titan" // or "rexster"
};

mogwai.connect(settings, function(err, connection) {
  // Start here...
});

Clone this wiki locally