Hey,
I was wondering if there is a way to insert a document with an indexed field value (not _id), and if the value exists already, then insert it with some change.
For example:
=== Existing Document ===
{
name: 'abc',
_id: 123
}
=== Document To Insert ===
{
name: 'abc',
_id: 456
}
=== Final Result ===
{
name: 'abc',
_id: 123
},
{
name: 'abc #2',
_id: 456
}
Thanks