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
7
votes
1 answer
Is MongoDB Realm function scalable?
I am pretty new to MongoDB.
I am in a scenario where it is possible for a system to invoke functions simultaneously many time.
I have gone through mongoDB Atlas function documentation and didn't find anything which speaks about scalability or…

FaisalAhmed
- 3,469
- 7
- 46
- 76
7
votes
1 answer
Disable Realm Sync only for non-premium users
I'm creating an iOS application, where I intend to provide data sync across device feature, only to the premium users. I find Realm Sync as a good solution to keep the local on-device database and cloud MongoDB Atlas in sync. However, I don't want…

Siddharth Kamaria
- 2,448
- 2
- 17
- 37
4
votes
0 answers
How should MongoDB Realm functions share JS code?
Cross-posted at https://developer.mongodb.com/community/forums/t/how-should-realm-functions-share-js-code/15052
So I'm scratching together a mildly complex application where I'd like:
my Realm functions to share internally written code (snippets in…

randytarampi
- 41
- 1
- 3
4
votes
1 answer
Multiple partitions in MongoDB Realm
Trying to model a standard Salesforce mobile app on MongoDB Realm.
The obvious partitioning is to use the salesman as my partition key.
This way, I can sync all stores and invoices of each salesman in their own partition.
However, salesman can cross…

user13973636
- 41
- 1
3
votes
1 answer
how to run nodemailer on MongoDB Realm? nodemailer failed to execute on MongoDB Realm
how to run nodemailer on MongoDB Realm?
nodemailer failed to execute on MongoDB Realm
code:
const nodemailer = require("nodemailer");
exports = async function (changeEvent) {
try {
const transporter = nodemailer.createTransport({
…

Jackson Kasi
- 119
- 2
- 7
3
votes
1 answer
How to upgrade a local realm to a synced realm?
The alternative title is "How to sync an offline local default realm?"
The default realm is used to allow the app to be used entirely offline. Later when the user decided to sign up the data stored in the default realm should be kept and synced.
Is…

XY L
- 25,431
- 14
- 84
- 143
3
votes
1 answer
MongoDB Realm: TypeError: user.mongoClient is not a function
When I'm calling:
const user = await app.logIn(creds);
const mongodb = user.mongoClient("mongodb-atlas");
from react-native in an attempt to connect to MongoDB Atlas (app is an instance of a Realm App) I'm getting the following error:
TypeError:…

Matthew Yang
- 43
- 4
3
votes
1 answer
Xcode Preview crashes because of RealmSwift model changes
I am developing an app with SWIFTUI, RealmSwift and Xcode 12.4
Along with development, Realm data model changes, eg. some values are removed, some are added...
When I make changes on the data model, I simply delete my app on my device and re-install…

Vincent Gigandet
- 918
- 10
- 21
3
votes
1 answer
Modeling sub-collections in MongoDB Realm Sync
I'm new to MongoDB as well as to MongoDB Realm Sync. I was following the Realm Sync tutorial and Realm data model docs, but I wanted to learn more so I tweaked the Atlas collection structure as follows.
Projects > Tasks // i.e. tasks is a…

Siddharth Kamaria
- 2,448
- 2
- 17
- 37
3
votes
0 answers
Number of connections per client on MongoDB Realm
According to this comment, there's a minimum of 4 connections per "running application process" on MongoDB Realm, three of these four are constant (monitoring connections) and the rest depends on the number of queries/writes. As I understand, each…

Luccas Clezar
- 1,032
- 10
- 18
3
votes
0 answers
ProgressNotification callback not triggered without an initial download in Realm 10
We are using MongoDB Realm in our app.
The first time the user is connected to the app, the ProgressNotifcation callback is triggered correctly, and it will work and trigger whenever a new download is coming.
Even if no download is pending, the…

Erdem Inan
- 41
- 3
3
votes
2 answers
How can I use local copy of MongoDB Synced Realm database while completely offline?
I am using MongoDB Realm Sync on my React Native app. When I start my app online and later disconnect internet, my realm works fine. I can see my data and also I can write data which syncs with server when I go back online. But when I start my app…

user3609554
- 31
- 4
3
votes
1 answer
Realm iOS: How to handle Client Reset
Basically, I want to handle a case where any device got SyncError with type ClientResetError then, want my device to re-login to realm again. but as per documentation, we have to closeRealmSafely before I login to realm again, but I am not sure how…

Uma_Shanker_Tiwari
- 453
- 1
- 3
- 16
2
votes
1 answer
MongoDB Flexible Realm Sync Rules across Collections
As I am using Flexible Sync for my application, I have to define my rules on sync level and not on document level. However I was wondering how to achieve read and write permissions across collections as I only have access to the current document…

Thomas
- 2,375
- 2
- 17
- 32
2
votes
3 answers
MongoDB Realm React Native SDK with Expo - Missing Realm Constructor error
According to the latest documentation for MongoDB Realm React Native, it states that their SDK is compatible with Expo...
Expo now supports Realm with the Expo SDK version 44. To use Realm
with Expo, upgrade to Expo SDK version 44. Realm does not…

Matt Price
- 1,371
- 2
- 9
- 19