Questions regarding specifically about the free database engine of the Realm Platform.
Questions tagged [realm-database]
34 questions
0
votes
2 answers
How to delete object with Id in Realm or Primary Key?
I have below object :
obj1 = [{ id = 1, name = "abc"}, {id=2, name="pqr"}, {id=3, name="xyz"}]
I need to delete an object with id=2 where id is Primary Key too.
Below method using to delete the object
const collection = RealmDB.realm
…

Swift
- 829
- 2
- 12
- 33
0
votes
0 answers
How to fetch two Properties one with value and another with only property name within same object in ReamDB?
with RealmDB object how to write multiple keys query ?
Schema Part:
StudentSchemaNames.student_data = { classID: int, students:
Students[], noOfPresence: int, noOfabsence: int, noOfLeft: int } ;
StudentScehmaNames.students = {studentid:int,…

Swift
- 829
- 2
- 12
- 33
0
votes
1 answer
Successfully write JSON to Realm DB using swiftyJSON in Swift
I am trying to write to a Realm DB from JSON file (using swiftyJSON) get the following error:
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'RLMException', reason: 'Invalid…

ecjps82
- 13
- 4
0
votes
1 answer
How long are mongodb realms retained on a device by default?
How long are mongodb realms retained on a device running the application by default (Sync/Normal) Does it matter if its a normal or synced realm? If so whats the default retention by the device for both?

LawrenceMouarkach
- 177
- 1
- 7
0
votes
0 answers
How to apply multiple filters to realm database results
I am new to programming & trying to apply filters using UISwitches
Currently I have:
A realm database returning all the objects
A UI that uses Switches to send filters
Things Attempted:
Subqueries, however I don't know the proper format to write…

Captain725
- 73
- 1
- 7
0
votes
1 answer
Realm database open file
I am working on my mobile app and with that I have been using Realm Database to store the user data. Further I have made a application for mac that is supposed to be able to open a realm file and display the user data from the file (Yes I know I can…

Vegard Jacobsen
- 1
- 1
0
votes
1 answer
Open Realm Database only one time when component is rendered (React Native)
Developing a React Native application for Android, I am totally stuck with a problem concerning the database Realm.
The app enables a user to query a prepopulated database via search bar. For example, you type a name such as "John" and a query to…

RuntimeError
- 1,332
- 4
- 23
- 41
0
votes
2 answers
How can I properly map RealmDB Results objects to SwiftUI Lists?
I am trying to display results of a realmdb query in a SwiftUI list but have trouble when deleting database objects.
I am trying to use something like this:
final class DBData: ObservableObject{
let didChange = PassthroughSubject

Michael
- 573
- 2
- 12
- 26
0
votes
1 answer
How to check if the data in realm database is more than 5 minutes old?
I retrieve data from API link and save it to a realm database. Now I have to check if my data in the database older than 5 minutes. If the data is older I want to reload it.

Dominik Tkalčec
- 11
- 5
0
votes
1 answer
How can I delete specific item from recycler view and from realm database?
Can't figure out how to delete specific item from recycler view and realm database.
I figured out to delete item from recycler view so when I when click on button delete, it deletes that item, but can't figure out how to delete from datebase as…

Kruno
- 121
- 1
- 1
- 13
0
votes
1 answer
Set UICollectionView embedded in UITableViewCell
I have a UITableView that contains a list of categories (in this example, list of sports types i.e. Water and Land based)
Each cell in this table then has a list of sports associated with the type of sport displayed in a nested UICollectionView. For…

teh_raab
- 384
- 1
- 3
- 21
0
votes
0 answers
Saved ImageView not appearing after saving it as byte[]
I am planning to save this ImageView :
to my RealmDatabase, but the image is not appearing when I want to retrieve it. it should appear here:
here is the my onSaveExpense code
public void onSaveExpense() {
//TODO - BITMAP EXPENSE ICONS
…

Michael Nguyen
- 3
- 4
0
votes
1 answer
RealmSwift: How to add multiple objects to Many To One relationship?
My goal is to develop this relationship with realm swift:
I have a dataset with all characters. Then I have a few lists, to which I want to add certain characters to.
This is what I got so far in swift code:
//
// Lists.swift
//
// Created by…

ItsMeDom
- 540
- 3
- 5
- 18
0
votes
1 answer
realm-cocoa save an empty object rather than object I passed
I met a problem in realm-cocoa 2.8.0(in 2.7.0 it works good) which is when I want to save an object into the realm file, I saw an empty object with default value is saved into the realm rather than the object I created(even the primary key is…

Xin Guo
- 1
- 1
0
votes
1 answer
How can I override a property in a RealmObject using realm database?
I want to override the following property using Realm so I can trigger a RaisePropertyChanged for another property:
public int Reps { get; set; }
This doesn't work, because it does not get picked up by Realm as a column in the database:
private…

karlingen
- 13,800
- 5
- 43
- 74