MongoDB Realm is a serverless platform and mobile database. MongoDB Stitch and Realm Database are now part of MongoDB Realm.
Questions tagged [mongodb-realm]
114 questions
1
vote
0 answers
User of Flutter Realm is null after closing and re-opening the app
I have found that after re-opening the App. The current user becomes null. It's not persistent. Here is my realm implementation:
void main() async {
// get app id from config
WidgetsFlutterBinding.ensureInitialized();
final realmConfig =
…

Shorifuzzaman
- 21
- 4
1
vote
0 answers
React native realm mongodb query and offline usage
We have a use case where logged in user will has list of products which can be shown even if not internet connection and i tried to achieve this using realm device sync (Flexible) using mongodb query (Aggregation) but it able to fetch products only…

Hardik Chavda
- 160
- 9
1
vote
0 answers
MongoDB Realm not syncing data to atlas with flexible sync
I am trying to create a proff of concept for my team with Realm sync but the data is not syncing to the atlas server(it is getting created locally). I have just created a react-native template and all the code that I am trying to work with is in the…

Rajarshi Ghoshal
- 119
- 1
- 12
1
vote
1 answer
RealmList as a JSON Schema - Mongo DB Realm
I have a simple model class from which I need to generate the schema on Mongo DB Atlas. But I'm having troubles when it comes to defining RealmList inside a JSON schema. If I insert "array" as a bsonType, I get an error. What should I write…

Stefan
- 2,829
- 5
- 20
- 44
1
vote
0 answers
React Native + Expo Dev Client + MongoDB Realm: Realm sign in functions not working on iPhone, but working in IOS simulator
I've been working with React Native and Expo using the expo-dev-client in order to use Realm in my react native app. From what I understand this is a relatively new system that was created to allow realm to work in a react native / expo app. (Here…

Jacob Olson
- 11
- 1
1
vote
0 answers
Call serverless functions in offline mode of MongoDB Realm Sync
MongoDB Realm allows the creation of serverless functions on the cloud which can be called from the client SDK.
My query is when working with Realm sync, are these functions also synced to the local database and can they be called on the locally…

Dhruv Pandey
- 482
- 6
- 18
1
vote
0 answers
Installing Realm hangs (or takes extremely lot of time)
I'm trying pod install to install the Realm (10.8.1) pod.
And it seems to hang completely. I've tried pod install --verbose, I deintegrated the pods from the project - and the process really doesn't seem to move at all.
Is there any idea to push the…

Igor Lebedev
- 135
- 7
1
vote
1 answer
How to store an Array of Arrays with Realm in React Native?
I want to store an array of arrays using Realm, but if I use type mixed it throws an error:
[Error: A mixed property cannot contain an array of values.]
This is my sample code:
export const ContentScheme = {
name: 'content',
primaryKey:…

Nishad Patil
- 11
- 1
1
vote
0 answers
"App init setup failed: a project already exists" MongoDB Realm App
I have an error message that I do know know who to fix regarding Mongodb Realm CLI.
https://docs.mongodb.com/realm/cli/realm-cli-apps-create/
When I write the following command in Terminal:
realm-cli apps init -n "test"
I get the error message "app…

Hurup
- 21
- 1
1
vote
0 answers
MongoDB Atlas Trigger - Changes could not be saved. Only [uri, clusterId, etc.] are allowed config options
I am trying to setup an Atlas Trigger but am getting the following error when trying to save. I am on the free shared cluster M0 on MongoDB 4.4.10
only [uri, clusterId, clusterName, clusterType, clusterSize,
clusterUpdated, dbUsername, dbPassword,…

Zachary Buce
- 140
- 7
1
vote
1 answer
Get Data from another collection (string -> ObjectId)
Let's say I have these two collections:
// Members:
{
"_id":{
"$oid":"60dca71f0394f430c8ca296d"
},
"church":"60dbb265a75a610d90b45c6b",
"name":"Julio Verne Cerqueira"
},
{
"_id":{
…

DValdir Martins
- 159
- 4
- 14
1
vote
0 answers
Realm sync-Getting Data from public partition based on USER ID
I have a public partition in which data is structured as
_id task userId
1 task1 User1
2 task2 User2
.................
I need to fetch and sync data based on userId.
Partition by userId is an option,but i don't want this.
Use Case:
Take a…

satish ray
- 117
- 1
- 10
1
vote
0 answers
How to connect MongoDB Atlas with android directly using the mongoDB Java Driver?
I am trying to connect MongoDB atlas with my android app using the provided mongoDB java driver, but the problem is that the code works fine in intellij using gradle but as soon as I use android studio to run the code it throws errors:
The Code that…

Tom Shaw
- 139
- 12
1
vote
1 answer
How to copy objects from the default local realm to a MongoDB synced realm using Swift?
The alternative title is "How to deep copies data from an offline realm to a synced realm using Swift?"
After found out that the only option for How to upgrade a local realm to a synced realm? is to "clone" or copy all data from the local default…

XY L
- 25,431
- 14
- 84
- 143
1
vote
1 answer
Realm Delete an Object in One to Many relationship
I have a ONE TO MANY schema like this:
SHOP SCHEMA
const Shop = {
name: "Shop",
properties: {
_id: "objectId",
products:"Products[]"
}
}
PRODUCTS SCHEMA
const Products = {
name: "Products",
properties: {
_id:…

Amani
- 227
- 1
- 10