args
args
?
const res = await this.r.table('products').insert(item, {
conflict: (id, oldDoc, newDoc) => {
return Object.assign(item, oldDoc.merge(newDoc.without("createdAt")));
},
returnChanges: true
})
.run(this.conn);
r.connect({host: 'IP', port: 28015, db: 'myDB'}, function (err, conn) {
if (err) throw err;
r.table('devices').getField('display').filter({url: 'someValue'}).run(conn, function (err, cursor) {
// How to get the result from here???
})
});