Return value from realm.write
See original GitHub issueAllow returning value from realm.write
E.g.
const user = realm.write(() => {
return realm.create('User', {})
})
If you accept this feature request, I can provide PR.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Read & Write Data - Node.js SDK — Realm - MongoDB
Query operations return a collection of Realm objects that match the query as ... A filter selects a subset of results based on...
Read more >Check realm create function returning object new or updated
The code checks if the object with a given primary key exists; if no then create a new object with the default value...
Read more >Getting started with Realm for React Native | by mbvissers.eth
It creates a View with three texts each containing a value of the books ... You can see that within a realm.write function...
Read more >Realm Xamarin 0.75.0
Realm Xamarin enables you to efficiently write your app's model layer in a safe, ... property public string Email { get { return...
Read more >The things I've learned using Realm | by Gabor Varadi - Medium
When we call an accessor on a RealmResults , we actually receive a proxy instance, that can read from and write to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kneth seeing your comment only now - I think
realm.write
should just return whatever the callback returned. So if you did: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