-
Notifications
You must be signed in to change notification settings - Fork 586
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
Partial updates #9
Comments
It should allow you to do a partial update for objects that have already been created. For new objects it should require all objects until we add support for default values. Will do some additional testing to see if I am missing something. |
I've added more extensive testing and haven't yet run into issues with partial updating: https://github.com/realm/realm-js/blob/master/tests/RealmTests.js#L117 My guess would be that you are not providing all values when creating an object for the first time which will definitely throw. I'll add support for default values next which should allow you to avoid the issue. |
hmmm, ok. i'll let you know if you if see it agian. |
Default values should now work in case it helps: https://github.com/realm/realm-js/blob/master/tests/TestObjects.js#L91 |
say i know the primary key - is there a way to update just a few of the properties?
right now it all goes through
create
(with thetrue
flag) and it crashes if all the properties are not set.The text was updated successfully, but these errors were encountered: