I am using rethinkdbdash in Node js connecting to the rethinkdb. Using the below code I get the whole document that has been changed (old and new values).
r.db(db).table('test')
.changes()
.run()
.then(function(feed){
feed.each(function(err, item){
io.emit('change message', item);
})
})
I only want the field that has been changed and the new value.
Any idea how to solve this issue?
thanks in advance!!