Irrelon / ForerunnerDB

A JavaScript database with mongo-like query language, data-binding support, runs in browsers and hybrid mobile apps as a client-side DB or on the server via Node.js!
http://www.irrelon.com
721 stars 72 forks source link

$replace with new documents? #245

Open cwewells opened 5 years ago

cwewells commented 5 years ago

I've used the $replace operator for new documents (as opposed to searching if they exist) and there seems to be not problem with that. Is this by design or should I check if a document exists (by primary key) and then $inserting if not yet in collection?