mafintosh / hyperdb

Distributed scalable database
MIT License
753 stars 75 forks source link

Return node on db#put #33

Closed hackergrrl closed 6 years ago

hackergrrl commented 6 years ago

Right now put's signature is db.put('/foo', 'bar', function (err) {}). It would be great if the node object were returned as its second callback parameter.

I think this is a bit more complicated than just returning the node object that _put produces; it doesn't have several properties set on it like other nodes exposed through the API, such as feeds, feedSeq, and a couple of others.