I am trying to debug errors I am experiencing when trying to update some documents in one of my collections. After looking closer, I noticed that documents got updated with an additional field:
The given document is created, then updated via GraphQL query (Realm) and then (by mistake) updated again with the same data. During the second update I get an error:
Error: reason=“role \“server\” in \“main-db.Users\” does not have update permission for document with _id: ObjectID(\”[differentId]\"): could not validate document: \n\taccount: email is required"; code=“SchemaValidationFailedWrite”; untrusted=“update not permitted”; details=map"
I investigated the issue, and it seems that the document cannot be updated because of the missing
_id__baas_transaction and what document is it pointing to.