Last active
July 13, 2017 18:51
-
-
Save jchris/6fe30093de29b9913875799eef3e9e15 to your computer and use it in GitHub Desktop.
connect to FaunaDB Developer Edition on localhost
This file contains 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
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