-
Notifications
You must be signed in to change notification settings - Fork 585
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
Return value from realm.write #2237
Comments
No interest? |
I think it makes sense and doesn't sound like a breaking change. We'd be happy to review a PR for it. cc @kraenhansen @cmelchior |
So only the last created object should be returned? |
Is this really not possible? |
@kneth seeing your comment only now - I think let foobar = realm.write(() => {
// create objects, update them, etc.
return { "foo": "bar" }
});
foobar.foo == "bar"; |
I agree - this should be straight forward to implement and very valuable. |
I'll add that this would very valuable and would definitely appreciate this addition. |
➤ Brian Munkholm commented: PR's are highly appreciated! |
@takameyer This came up in our user interview today - can we add this to our potential future API plan please? |
@ianpward I'll add it in. Looks like a very useful feature. |
Allow returning value from
realm.write
E.g.
If you accept this feature request, I can provide PR.
The text was updated successfully, but these errors were encountered: