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

Consider adding support for maps of non-nullable objects #7568

Open
nirinchev opened this issue Apr 8, 2024 · 1 comment
Open

Consider adding support for maps of non-nullable objects #7568

nirinchev opened this issue Apr 8, 2024 · 1 comment

Comments

@nirinchev
Copy link
Member

When designing maps, we decided we wanted to preserve the keys, even after deleting the corresponding value object because keys may have meaning to users and deleting them would represent data loss. However, users of the Swift SDK (realm/realm-swift#8379) have pointed out that they'd prefer behavior similar to lists/sets where deleting an object also removes it from the collection.

We could achieve similar functionality in a non-breaking way by allowing users to define maps of non-nullable objects (this is currently disallowed), where Core will automatically remove the key-value pair from the dictionary.

Copy link

sync-by-unito bot commented Apr 8, 2024

➤ PM Bot commented:

Jira ticket: RCORE-2074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant