Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [realm]

Realm, formally known as MongoDB Realm, is an object-oriented database widely used as an alternative to SQLite & ORMs that includes a built-in device-to-cloud data sync. Realm supports a variety of platforms including Android, iOS, Linux, macOS, and Windows.

0 votes
0 answers
10 views

Realm Device Sync Hangs on App Launch When Offline (React SDK)

After following instructions for Access a Synced Realm While Offline, it seems Realm is still trying to connect when my app launches and then hanging indefinitely on either a blank screen or a ...
Austin's user avatar
  • 3
0 votes
0 answers
8 views

Realm Environment Collections

How do you create a Realm environment object or collection? @StateObject var animalGroup = AnimalGroup() WindowGroup { ContentView() .environmentObject(animal) } And where will it be ...
Coenraad Prinsloo's user avatar
0 votes
0 answers
23 views

How to fix the error in Xcode after installing realm? [closed]

Hi) Started learning realm in swift, when installing it in a project it gives the following errors Messaging unqualified id with a method that is possibly direct and Multiple methods named '...
Константин's user avatar
0 votes
1 answer
35 views

Setting primary key in Realm MongoDB

I am trying to make a collection of cocktail recipes. In this case, every recipeName field in Realm object is unique. Then can I set recipeName to be the primary key so that I can call useObject() ...
seans's user avatar
  • 11
0 votes
0 answers
25 views

Realm Database Dependency Issue

For my android app, I am trying to use Realm's NoSQL embedded database to store files locally as well as on the cloud. However, most of the documentation that I look up seems to be for Kotlin-based ...
Agasti Mhatre's user avatar
0 votes
1 answer
42 views

Realm / MongoDB Delete the linked object with SwiftUI

Good day I have 2 classes as follows: class AnimalModel: Object, ObjectKeyIdentifiable { @Persisted(primaryKey: true) var _id: ObjectId @Persisted(originProperty: "animals") var ...
Coenraad Prinsloo's user avatar
0 votes
1 answer
120 views

Flutter Realm can two changelisteners run parallely causing race conditon?

I am creating my realm instance in my App Singleton class, and from there wherever I need to execute any realm query I use that singleton class's realm object to execute it. Now as my realm instance ...
Sudhanshu Gaur's user avatar
1 vote
1 answer
58 views

Unresolved reference after try/catch added

I have the following code I'm trying to debug and want to add a try/catch block to see why it is crashing. When I add that though, it gives me an unresolved reference a few lines down, as noted in the ...
user443654's user avatar
0 votes
0 answers
16 views

How to make IsManaged to false for realm objects?

I have a relam class which inherits realm object. I am able to query the Atlas but when JSON is assigned to class by default its managed. I want to make that object unmanaged. Currently its done by ...
Tejo Krishna Surapaneni's user avatar
0 votes
0 answers
14 views

Multiple LDAP configuration on sonarqube server

I am trying to configure multiple LDAP servers on my SonarQube server. Each LDAP server works properly when configured individually for testing. I tried to configure multiple servers using the method ...
Saurabh Patil's user avatar
0 votes
1 answer
32 views

Use Realm Swift Query API to query object attributes contained in a List

I'm using Realm in a Swift project to store my data. I want to use the Realm Swift Query API to query object attributes contained in a List. My (simplified) objects look like: open class QuestionModel:...
Cuespeak's user avatar
  • 169
0 votes
1 answer
26 views

Use Map<String, SomeClass> in RealmSwift?

Code example: @objcMembers class Obj1: Object { dynamic var obj2: Obj2? } @objcMembers class Obj2: Object { dynamic var obj3: Obj3? } @objcMembers class Obj3: Object { dynamic var val: ...
Gargo's user avatar
  • 1,337
0 votes
0 answers
35 views

error: package io.realm does not exist import io.realm.Realm;

error: package io.realm does not exist import io.realm.Realm;error: package io.realm does not exist This is my project level build.gradle.kts // Top-level build file where you can add configuration ...
Shagufta Jabeen's user avatar
0 votes
0 answers
42 views

How to make a class extend a Realm Class AND add a have a property as of this class as another RealmCLass?

Is it possible to extend a Realm Class inside any other class in Flutter and has a property of a RealmClass field(using has a relationship) inside that class ? @JsonSerializable() class Matches ...
Sudhanshu Gaur's user avatar
0 votes
1 answer
31 views

in realm , can't get schema for configuration

i am using realm: ^3.1.0 for the very first time but i can't get schema form my model class. This is my model class which is private according to the package import 'dart:developer'; import 'package:...
Om Trivedi's user avatar

15 30 50 per page
1
2 3 4 5
633