LokiDB icon indicating copy to clipboard operation
LokiDB copied to clipboard

Add update insert (upsert/upinsert...) functionality

Open Viatorus opened this issue 7 years ago • 1 comments

I'm submitting a...


[x] Feature request

Current behavior

Currently, there is no function to do a simple update insert of a document.

Expected behavior

Provide a method to insert or update a document to the collection. The function should check by using unique indices if the document should be inserted or update an existing one.

See techfort/LokiJS/issues/158

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Long requested feature. Many databases support this.

Viatorus avatar Mar 26 '18 05:03 Viatorus

^^^^^^^^

xkem avatar Jun 22 '21 06:06 xkem