Open arfath-linklet opened 7 months ago
➤ PM Bot commented:
Jira ticket: RJS-2737
This is a legitimate bug - looks like we've got a copy-paste error here: https://github.com/realm/realm-js/blob/1e1e48a0f906d471b4a046168ed8cd628ef2d70f/packages/realm-web/src/services/MongoDBService/MongoDBCollection.ts#L134-L145
How frequently does the bug occur?
Always
Description
When using
realm-web
'sfindOneAndDelete
it leaves an empty document with only _id in the collectionfindOneAndDelete
appears to be usingfindOneAndReplace
under the hood. This issue appears to be related to another issue fromrealm-js
- https://github.com/realm/realm-js/issues/5151Current workaround is to use
find
anddelete
as separate operations.Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
realm-web@2.0.0
What services are you using?
Atlas App Services: Functions or GraphQL or DataAPI etc
Are you using encryption?
Yes
Platform OS and version(s)
Browser
Build environment
No response
Cocoapods version
No response