Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2737

realm-web's `findOneAndDelete` leaves empty document with only _id in collection

      How frequently does the bug occur?

      Always

      Description

      When using realm-web's findOneAndDelete it leaves an empty document with only _id in the collection

      findOneAndDelete appears to be using findOneAndReplace }} under the hood. This issue appears to be related to another issue from {{realm-js

      Current workaround is to use find and delete 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

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: