Combining findDoc() or where() with saveDoc()
Created by: bguiz
... essentially an upsert on a document where the
id primary key is unknown. How do we do this with massive-js?
Currently it looks like we can do
where() with one statement, get the
id if one was found, then
saveDoc() to update or insert. That's two separate statements. Would it be possible to accomplish the same with just one statement?