Hi,
I want to achieve the following. I want to insert a document to a collection only if this document doesn’t exist inside the collection otherwise return the existing document.
Is it possible to do it with a single query?
Thank you,
Hi,
I want to achieve the following. I want to insert a document to a collection only if this document doesn’t exist inside the collection otherwise return the existing document.
Is it possible to do it with a single query?
Thank you,
Yes, you’ll need the following: