Skip to content

Instantly share code, notes, and snippets.

@jchris
Last active July 13, 2017 18:51
Show Gist options
  • Save jchris/6fe30093de29b9913875799eef3e9e15 to your computer and use it in GitHub Desktop.
Save jchris/6fe30093de29b9913875799eef3e9e15 to your computer and use it in GitHub Desktop.
connect to FaunaDB Developer Edition on localhost
var faunadb = require("faunadb");
var q = faunadb.query;
var client = new faunadb.Client({
secret: "secret",
scheme: 'http',
domain: '127.0.0.1',
port: 8443
})
client.query(q.Concat(["Hello", "World"]))
.then(function(result) {
console.log("result", result);
})
.catch(function(error) {
console.log("error", error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment