Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

receiving Realm.Dictionary when trying to save nested objects in mixed type #6892

Open
vinibgoulart opened this issue Sep 18, 2024 · 1 comment

Comments

@vinibgoulart
Copy link

vinibgoulart commented Sep 18, 2024

How frequently does the bug occur?

Always

Description

I have this schema:

export const Example: ObjectSchema = {
  name: 'Example',
  properties: {
    filters: {
      type: 'mixed',
      optional: true,
    },
  },
};

Trying to save this in the schema:

realm.write(() => {
      example.filters = {
        test: {
          blabla: 'blabla',
        },
      };
    });

Receiving this in the database snapshot:

Example: {
  filters: {
    test: [Realm.Dictionary]
  }
}

Expected output:

Example: {
  filters: {
    test: {
      blabla: 'blabla',
    }
  }
}

Stacktrace & log output

No response

Can you reproduce the bug?

-- select --

Reproduction Steps

No response

Version

12.3.1

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

IOS

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Sep 18, 2024

➤ PM Bot commented:

Jira ticket: RJS-2905

@vinibgoulart vinibgoulart changed the title receiving Realm.Dictionary when saving nested objects in mixed type receiving Realm.Dictionary when trying to save nested objects in mixed type Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant