I came across this -
MongoDB atomic "findOrCreate": findOne, insert if nonexistent, but do not update
What I want is -
- If document is Absent, I insert one and return SUCCESS
- If document is Present, return FAILURE
Can I achieve this?
I came across this -
MongoDB atomic "findOrCreate": findOne, insert if nonexistent, but do not update
What I want is -
Can I achieve this?