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);