Realm Questions
Ad
Filtering objects with null property on Realm for React Native
React native and realm noob here! i want to load objects where one particular property is null. i tried to filter them like
How to select the singlerow and Insert and delete the rows
I am new to realm library and here is my requirement i need to insert 10000 rows by default which i have inserted successfully. but i have having
get RealmResults in array instead of object in NodeJs
I have a simple schema const mediaelementschema = { primarykey: 'id', name: 'mediaelement', properties: { id:
Realm.objects() return empty objects on React Native
I'm testing realm database on react native (testing on android) and i've got some problems retriving data. i used this function to persist
Can't integrate realm into android library module with kotlin
My top level build.gradle apply plugin: 'kotlin' buildscript { ext.kotlin_version = '1.3.30' repositories {
Realm PermissionManager.getPermissions() error after connection reset
I am facing this issue and would like to know if someone facing it too and maybe have solution. i also opened issue on github but no
Is it possible to parse with JSONObject and RealmObject with the same model?
I don't want to create separate models for json and realm. i'm looking for a way to do that. how do i handle this in a single model
Is it okay to extend from classes that extend RealmObject in Java?
Let me explain with the help of a example. i have a transaction class (realm table) which extends realmobject. i want to
Realm, searching in String list
I have an items (realmobject) and they have barcodes (realmlist). i have to query which item contains a searched barcode. public
How to query to display only a single property from realm database with multiple properties?
I intend to build an app that uses realm database. i have a table with 7 properties. the database model class is as below :
Ad
Should I set extractNativeLibs to false when using Android App Bundle?
I had a problem installing my app on the new android q beta 1 via android studio. it looks just like
How to save and store data locally and on a server simultaneously in Swift?
I am planning to make a mobile application for both ios and android. first, i would like to make the ios version of the app. i am planning to use
Realm.copyFromRealm cause Realm access from incorrect thread. is it possible?
Realm access from incorrect thread. realm objects can only be accessed on the thread they where created. i make alarm service by using
Realm using try-with-resources
Android studio give me message that i can use try with automatic resource management. but the docs says if
Error building project io.realm.DefaultRealmModule when switching to plugin android gradle 3.3
Android project has two modules that use realm. when assembling with buildscript { dependencies { classpath
Realm is already in a write transaction if I execute two transactions in the same method
I need to eliminate the first records recorded by the realm db if they are more than a certain number, but i get this exception:
Realm one to many relationship not persisted
I'm trying to implement a many-to-many relationship with realm between userand chat objects.
Realm syncing with large collection on Firestore - architectural questions / issues
I have a collection of product objects (title, desc, price, quant, urlstring, etc) in a firestore collection. currently around 1000 items, but
Realm copyToRealmOrUpdate v/s insertOrUpdate
Whats the difference in copytorealmorupdate v/s insertorupdate in realm while saving object. which one should be considered to apply?
Realm 5.8.0: findAllSorted - compile error
Android studio 3.2. realm: 4.1.0 in my build.gradle: buildscript { ext.realm_version = '4.1.0'
How to exclude a Realm model class from a specific Realm file in DB scheme?
Realm version: classpath "io.realm:realm-gradle-plugin:5.8.0" i
Ad
Realm "Cannot create asynchronous query" while using multiple addChangeListeners
I'm getting this type of error: fatal exception: java.lang.illegalstateexception: cannot create asynchronous query while in a
How to read data from a Realm Object server?
I have realm object server and i have created a new realm and named it as test. i have created a new table inside it called
Combining `by lazy` and `object` results in compiler-error "cannot find symbol"
I cannot compile anymore after the update to kotlin 1.3.0 (works in 1.2.71) when trying to use by lazy
How to restart async method when It's called again?
I have a problem with an async method. every time when its invoked it should be restarted. how to achieve that? in my android
After installed Realm in React Native, Can't find module /../../node-pre-gyp
After installed realm into my react-native project, while i tried to build my project, i'm getting the following errors:
Realm database objects accessed from different thread issue (only on some devices)
I have a singleton class 'realmdatabasemanager' where i have synchronized methods for reading/writing from realm local database.
Realm isn't set value to the fields of the objects on reflection (Android)
I'm trying to implement an abstraction to realm so that i could save some time when using the curd operation on the db. the abstraction
copyToRealmOrUpdate removed updated object in RealmResults
I just learned about realm and something strange occurred to me. i have 3 activities lets call it a, b, and c. in activity a (home screen)
Is realm database have a storage limit for mobile application?
I am creating an android application and its also working offline mode for offline storage i used realm database.
How to restore an item deleted from Realm?
I'm creating a recyclerview with swipe-to-delete feature, but i have no idea about how to support undo operation. my
Set adapter or RecyclerView refresh after Firestore function
I'm populating a realm database table with information from a cloud firestore collection. on the first load, the application opens
Ad
Do i have to provide a Realm Migration when only adding new Fields?
In theory simply adding new fields could work without migrating, those fields would just be null on all existing objects. does realm work like
convert LinkedTreeMap to List while deserializing data using Gson
I am storing incoming json from server into my model class. i tried to create generalize the response class to store response of different
Realm for Java/Android - preserving the state of query/result
In the project currently under development, we are integrating the realm database into the
Realm for react native not working in debugging mode
When opening react-native app in debug mode i receive the following error in console and device connected via usb
Realm SyncConfiguration.Builder deprecated
I am using realm cloud sync and i used to write following code for logging in to server. if (syncuser.current() == null) {
How to map Json to valid Java field name with Realm
My current android application employs realm as the local database. i am populating my realm entities with data sourced from third party
Updating data on Fragments in android
I have a mainactivity that hosts two fragments in a tabview. a method on the mainactivity downloads data from a remote server using apis and
How to save the changeable data using Realm?
In my application i use realm database. as you know, the data is saved in objects, like this: allergen first_item = new
stackoverflow error while serializing generic class in GSON
I am trying to build a generic object named request which can hold request related to different entities. for example , request can be
react-native, realm: how to trigger re-render in another tab?
How is it possible (without the use of redux) to trigger an re-render in another tab? i am using: react-native-navigation:
change property dynamically while serializing generic class
I have following generalized class that i am trying to serialize using the gson library. public class trequest<t> implements
Ad
realm migration error "Property 'x' has been added"
I can't use migration realm in my project, you need to configure the migration of realm. i created a migration class,i added migration and
Update the list when data is filtered from the realm database in android
I am stucked with the list update problem when i filter the list of items from realm database. what exactly i am trying to do is add some
Not getting data for anonymous array list
I am using realm as mobile database and logansquare to parse the json data. i want to parse below mentioned
how filter list that add some filter and remove some in Realm java query
I have list show some stuff and every stuff has some tag. i want filter stuffs by all tags clicked and change filter by some tag deselect.
cannot store Firebase parsed data into Realm Database
Hey guys iam using firebase to parse a books info and iam trying to store the data inside realm database so that the user can access the data
Realm on react-native : can't get results when not debugging
I can't get the results of any query when not debugging, but works perfectly when debugging also i
Kotlin extension function with Generic doesn't work with Any?
I want to have an extension function from the realmlist class: private inline fun realmlist<any?>.saveall() {
Android Firebase - Mysterious object keys
I tried pushing an object, extended by realmobject, to my firebase database. and then these key-value pairs appeared out of nowhere: "loaded",
Determine realm changeSet fields
How to determine what fields changed at realmobject update with the basic realm adapter listener approach? need do have both ranges info
Calling onStart() after onCreate() with some delay
Can we add delay in calling onstart() method of splash activity from oncreate()? i want to call
Is it a good practice to query an object with realm outside transaction?
I was wondering.. is it a good practice to query some object outside a realm transaction? i mean, i don't want to modify that object, i just want
Ad
Realm access from incorrect thread. Realm objects can only be accessed on the thread they were created, while trying to use inside spinnerlistener
I have a fragment where i am using realm like this string selectedlang; realm realm; @nullable @override public view
How to connect to Realm from aws lambda node
I am trying to connect to a realm instance from an aws lambda (node) with the following code: await
Realm query by two params in list
I have two objects: author and book. @realmclass class author { @primarykey val id: string? val books:
Migrating Realm with the re-creation of the schema to a specific version of the database
Prior to the version of database 11 in my application, the user did not enter data. so i did not need migration. i used
How to do a Realm migration in Android?
I'm using realms as a database in android app. works fine, but i've added a new label in my user model and i'm getting the error that i need to
Realm messes with Android data binding
I have an app that builds ok but as soon as i make one of my classes realm-aware by either @realmclass/realmmodel or realmobject i get a ton of
This method is only available in managed mode error by sort
I have linkedhashset and i want to transfer to created realmlist and sort datas. final linkedhashset<message>
Convert RealmResults to RealmObject
I have one realmobject custom class public class terminaltable extends realmobject implements serializable{ public string logo =
Is it possible to have a SQL database in React Native?
Can i have in my react native application some database which know how to handle sql orders (select,insert...). i was thinking about realm
Updating realm object having primary key
I am trying to update a realm object with primary key. now keep in mind i am not updating the primary key but only another field in there. below
How to know Realm Object Server version installed with NPM
One way to know the version of installed realm object server is with realm studio. is there another method or command line other than that? i have
Ad
Unit testing Realm wrapped LiveData with Mockito
I am trying out realm along with android architecture components including livedata. i have been following google's guide to application
How to update RealmObject inside RealmObject properties?
Message extends realmobject{ attachment attachment; } attachment extends realmobject{ int state; } i want to update
Realm access from incorrect thread in rx and dagger
I know this question asks a lot but i am confused by reading this question.in my project i am using dagger, rx and realm in mvp pattern.i have an
How to properly update RealmSwift pod on Xcode?
Last week i installed realmswift pod on my xcode project, with version 3.2.0. yesterday, on xcode logs, realm encourage me to
Android Realm, why I don't have any of delete methods available?
I'm learning realm library and building dao class. switching from tutorial to tutorial and all of them containing some type of delete method like
Objc wait for REALM object is exist
I have a function that run after application start, it retrieve the realm object with specified id and display it. the problem is sometime
Realm - Sum all fields error
Im trying to get all of the duration fields from my object and add them together however i cannot seem to find a solution to do this. my
Did Realm support model version?
I'm getting start with realm but i didn't find any info about how to handle model version.for example,i want to add/delete some properties in next
can i use class that extends RealmObject as regular object?
I want to use class that extends realm object as regular class, but there's exception in my getfilter() throwingexception
How to bundle a realm file
I'm following the realm documentation on how to
Swift Realm filter List property using an Array
I have this property in my realm object var tags = list<tag>() "tags": [ { "tagid": "80069",
Ad
Android Studio Java ANR Memory Leak
Thank you for watching and sorry for my poor english. my game app faced with a problem. sorce code
How to change child's parent in Realm
I have one stupid question. how can i change parent of the child in realm java-android with saving child's id. should i get bookmark from one
iOS RealmSwift storage with Swift 4
I am trying to use realmswift in order to save items to the phone storage in swift 4. i have two different views; one for the save
Realm how to make a query for items that have the size of an array bigger than 0?
I checked the documentation, and i know how to access objects from within objects, like: realmresults<user> r1 =
Kotlin Realm: Class must declare a public constructor with no arguments if it contains custom constructors
I'm creating a realm object in kotlin. realm object: open class
Realm crashes at first call. Configurations cannot be different if used to open the same file
I get this error: fatal exception: java.lang.illegalargumentexception configurations cannot be different if used to open the same
Fatal Error :Can't open realm
I am working on ios. i am using realm database in the frontend. it was working fine until i made some changes to the realm model
Find schemaVersion of realm in swift 4.0
I am relatively new in this field, and really stuck here as how to get the current schemaversion of realm. i tried below code to check my
CalcGP.semester must be of type 'number', got 'string' ('1')
`import react, { component } from 'react'; import { stylesheet, platform, view, image, text, textinput, touchableopacity, alert,
how to loop through strings-arrays and add to realm database?
I have strings-arrays like this. <resources> <string-array name="names"> <item>foo/item>
RLMException attempting to create object with an existing primary key after check
I'm receiving an rlmexception for the following reason: attempting to create an object of type 'student' with
Ad
How to realm database retrieve a nameKey-value in react-native?
I needs a database for a react-native android / ios app. as a first step in learning realm, i want to replace asyncstorage with realm to read
Android error with realm, trying to use async. Says it's opened from a thread with no looper
I get the following error at this code: "your realm is opened from a thread without a looper. async queries need a handler to send results of your
Remove object from RealmList based on primary key
How can i remove single object from realm result based on primary key of objects stored in realm. below is my realm model open
How to save data in realm database
How to save data in the realm database? i tried to write the code below. example: i have a list of size 4. in the for loop, i can view all the
How to fix Realm warning Invalid Source (file not found primitive_list_notifier.cpp)
When i built an ios project using realm (5.5.2) on xcode 13, i have the following warning concerning realm. realm-cocoa
RLMException: 'Primary key property 'serial' does not exist on object 'Book' Migrating to Swift 4
I'm running into this issue with realm on ios using swift 4 compilation, where on startup the app crashes with the following message
Schema version update for new models
It's a bit unclear to me, if the schema version needs to be updated when i am adding a completely new model. according to the
150k words text file is 0.8mb where realm db size is 18mb
I am inserting 150000 objects in realm db. object has only one property which is string. at the same time i am creating a string builder with new
Realm, -[__NSCFString timeIntervalSince1970]: unrecognized selector sent to instance
I ask for your help. i want to save my response to realm db. it`s my test model @interface currencyinfo : rlmobject
How do i properly test my realm.io implementation in React Native with Jest?
I'm quite new to react native and jest and have so far mostly written tests using the test() method and expect().tobe... or .toequal. now since
Realm Object is not updating
I'm using realm in my project and i was trying to update the realm object through rxjava. realm object is successfully stored but the realm object
Ad
How to use realm with RxJava2
I am using rxjava 2 and realm in my project and i was fetching data from realmresults using observable. here is my code . fun
RealmSwift display for each date to tableview section
I'm new in swift and realm. i want to display data which are stored in realm. i want to display for each date to tableview
Ad
Blog Categories
Ad