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

Type issue: objectForPrimaryKey still returns undefined but not null

      How frequently does the bug occur?

      Always

      Description

      The changelog of v11.0.0 says this:

      > When no object is found calling Realm#objectForPrimaryKey, null is returned instead of undefined

      But these two are not updated to line up with the document above. They still return undefined instead of null

      https://github.com/realm/realm-js/blob/eb9195398d7b6372fafbebd6d4a80dfb8f52df04/packages/realm-web/types/realm/index.d.ts#L1327

      https://github.com/realm/realm-js/blob/eb9195398d7b6372fafbebd6d4a80dfb8f52df04/packages/realm-web/types/realm/index.d.ts#L1330

      Stacktrace & log output

      No response

      Can you reproduce the bug?

      Always

      Reproduction Steps

      No response

      Version

      11.9

      What services are you using?

      Local Database only

      Are you using encryption?

      Yes

      Platform OS and version(s)

      All

      Build environment

      Which debugger for React Native: ..

      Cocoapods version

      No response

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

              Created:
              Updated:
              Resolved: