frank06/riak-js — Issue #111: Siblings
Author: jdonnerstag
Created: 2012-01-15 11:15:55+00:00
State: open

It's not quite clear to me how siblings will be provided based on the riakjs.org documentation. E.g. given the following code and assuming siblings exist and require conflict resolution. What would "flight" and what "meta" contain? How to detect that siblings are required and that conflict resolution is necessary?

db.get('flights', 'KLM-5034', function(err, flight, meta) {
if (err) throw err
flight.status = 'delayed'
meta.links.push({ bucket: 'airlines', key: 'IBE', tag: 'operated_by' })
db.save('flights', 'KLM-5034', flight, meta)
})