Skip to content

Conversation

@dfahlander
Copy link
Collaborator

As prematurely documented on the website: https://dexie.org/docs/Table/Table.upsert()

We need this for realm creation on sharing. Recommendations of creating realms from boundRealmId will be updated in docs to use Table.upsert() instead of Table.put() - since Table.put() replaces the existing owner of the realm while Table.upsert() only makes sure to get the object created with some props but leaving owner property unchanged.

@dfahlander dfahlander merged commit 4991356 into master Oct 3, 2025
6 checks passed
@dfahlander dfahlander deleted the feature/upsert branch October 3, 2025 22:43
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

Successfully merging this pull request may close these issues.

2 participants