rethinkdb Getting started with Node Querying a document from a table


Example

r.connect({host: 'localhost', port: 28015})
.then((conn) => {
    // Can also use .get({id: 1})
    return r.db("stackoverflow").table("examples").get(1).run(conn)
}).then((result) => {
    console.log(result);
})