Closed yumikohey closed 5 years ago
I assume you figured out what was wrong, but separately you may want to take a look at the upsert options for updateOne()
Stitch Docs: https://docs.mongodb.com/stitch/mongodb/update-documents-in-mongodb/#upsert-documents
MongoDB Docs: https://docs.mongodb.com/manual/reference/method/db.collection.update/
When I run this piece of code in the function editor, it successfully insert the entry. Then, I removed the entry, and call this function from React Native, it return
Object {}
. Why is that? Any setting is missing? I am able to login / sign up an user through the app.