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
1 answer
MongoDB Realm: environment value exists but is undefined inside Realm Function
I am referencing an environment value from a Realm function as instructed here: context.values.get("appTwilioNumber")
I confirmed appTwilioNumber exists in our project: and that our project is assigned an environment:
Yet, when I call…

nnaj20
- 113
- 1
- 10
1
vote
1 answer
Getting undefined values when I try to call property of object
I am trying to access property values of a mongoDB Atlas document within a mongoDB Realm HTTP function.
The document within the mongoDB collection looks like this:
{
"_id": {
"$oid": "60dd5a9da81cb4304a8992fe"
},
"name": "testName",
…

mustafa-tariqk
- 46
- 5
1
vote
2 answers
How to map over results in Realm custom resolver function find() response?
I am trying to create a function for my custom resolver that gets all documents in a collection and returns an amended payload with new data. Below is the code that im using to get one client and amend its data:
exports = (input) => {
const…

poca
- 3,630
- 3
- 13
- 19
1
vote
0 answers
How to import data from google sheets to mongodb mainly if array have to be sent?
I want to send data from google sheets to mongodb I am having a problem in sending my data mainly the array field in google sheets.I am new to this Thanks in advance.
Following is my code
THIS IS code.gs FILE in spreadsheet
I have tried Array(word),…

Laya Gudala
- 11
- 2
1
vote
1 answer
Authorizing API Requests to 3rd Party Services in Mongodb Realm
I'm building a React app that allows users to login with Google and then connects to a webhook/3rd Party service in Realm. The service should only return data that the users own.
I've set up the OAuth 2 with Google and can get back access_token for…

Tom Thorley
- 11
- 2
1
vote
1 answer
Limit of partition value that can be sync in same time in mongo realm sync
I want to sync different partition values at same time. Let’s say may partition key is partition and an I have different values. I want to sync public,user,teamA,teamB`,… .
What’s the limit for this?
Is there any limit in Mongo Atlas side that can…

mahdi shahbazi
- 1,882
- 10
- 19
1
vote
0 answers
MongoDB Realm - Block data leaks
I am in the stage of setting up MongoDB Realm sync with Schemas but I have a question regarding data breaches.
My schemas looks like this:
User {
id
name
groups[] (ids)
}
Group {
id
name
members[] (users - Inverse Relationship)
}
I would…

daniel3223
- 141
- 1
- 9
1
vote
0 answers
React Native and MongoDB Realm: found: object with keys {$undefined}
I'm using React Native and MongoDB Realm, but I get the following error:
found: object with keys {$undefined}
This happens when I try to register a user like so:
await app.emailPasswordAuth.registerUser(phone, password);
const credentials =…

someonewithpc
- 366
- 5
- 14
1
vote
0 answers
Maximum call stack size exceeded when filtering objects with inverse relationship ( Realm 10.1.1 )
Giving the following schema:
const Person = {
name: "User",
primaryKey: "_id",
properties: {
_id: "objectId",
name: "string",
age: "number",
company: "Company[]"
}
};
const Company = {
name: "Company",
primaryKey:…

Fabio G.C
- 11
- 3
1
vote
1 answer
Does realm database support blazor web assembly?
I have an ambitious goal to build a cross platform app that would share as much code as possible that would run on desktop, mobile devices and web browsers. The application is going to use realm database with mongoDB atlas for cloud sync.
All of…

kyurkchyan
- 2,260
- 2
- 23
- 37
1
vote
1 answer
What is the difference between MongoDB Realm Triggers and MongoDB Atlas Triggers?
So both of them are part of MongoDB features that I think have common nature. In my case, every time a document is created or updated, it will trigger a function that will update the document field with Date.now() timestamp.
It can be achieved using…

I Putu Yoga Permana
- 3,980
- 29
- 33
1
vote
0 answers
MongoDB Realm: React Native does not persist login / sessions after app restart
I am following the Task Tracker tutorial and I am not able to persist the login session. I am able to register and login, however, everytime I close the app and open it again, it redirects me to the login…

Jack Sparrow
- 385
- 3
- 5
- 13
1
vote
1 answer
React Native with mongdb realm, Realm.App(config) always returns empty object
Below is the quick start code to initiate the app given in MongoDB realm docs.
import Realm from 'realm';
let app;
// Returns the shared instance of the Realm app.
export function getRealmApp() {
if (app === undefined) {
const…

Pravinkumar
- 129
- 2
- 10
1
vote
0 answers
Realm Sync client history using all of MongoDB Atlas Cluster Storage
I'm trying out MongoDB Realm Sync
My iOS application currently is using local Realm DB with around 4 MB of data.
Trying it out with MongoDB Realm Sync, everything works fine except that with 4 MB of my data, it is having a…

Vibhor
- 70
- 9
0
votes
1 answer
Cypress React E2E Test - MongoDB Realm Backend call Promise never send
we are encountering a strange issue while running a Cypress E2E Test for our React application we just can not explain.
Our configuration:
TypeScript
React v17
MongoDB Realm (realm-web) v1.7
We are testing our application with Cypress v12.11.0.
The…

Daniel Bebber
- 13
- 5