Document not found exception thrown - while using collection.upsert

@mehul I’m pretty sure that’s not the case. Upsert will insert if it doesn’t exist and replace it if it does. Do you have a piece of sample code you can share that demonstrates your issue?