Questions tagged [mongodb-realm]

MongoDB Realm is a serverless platform and mobile database. MongoDB Stitch and Realm Database are now part of MongoDB Realm.

114 questions
0
votes
1 answer

How to import Google Sheets Data to MongoDB Atlas Realm

I am trying to import the data I have from my Google sheets doc to MongoDB Atlas. I have written the app script as well as the function in the function editor. When I run my code in the function editor in MongoDB I get this ERROR "mongodb insert:…
0
votes
2 answers

How quickly can Realm return sorted data?

Realm allows you to receive the results of a query in sorted order. let realm = try! Realm() let dogs = realm.objects(Dog.self) let dogsSorted = dogs.sorted(byKeyPath: "name", ascending: false) I ran this test to see how quickly realm returns…
pdiffley
  • 603
  • 9
  • 18
0
votes
1 answer

Realm, Accessing the Object property after deleting that Object

I am deleting a Realm db Object, but I want to access its value after deleting so that I can use it in other processings. This is how my code looks like: const theObject = realm.objects('Products').filtered("_id == $0",…
Amani
  • 227
  • 1
  • 10
0
votes
1 answer

Getting the property from the active slide in MongoDB Ionic React

I try to show one collection field based on the ObjectId that's related to another collection in MongoDB. I have 3 collections: Users: { "_id" : "115ds1f4sd55fe1e51fds5f4", "name" : "Sam", "age" : 25 } Country: { "_id" :…
0
votes
1 answer

Search query through all collections in mongodb

I'm using mongodb Realm functions and want to run this query for all my collections in the database. I have to write a collection name; otherwise, I get this error: '(AtlasError) Pipeline can only have no collection if the first stage is…
0
votes
1 answer

AWS S3Client throws error: 'emitWarning' is not a function

I am trying to create an S3Client using the @aws-sdk/client-s3 package, as shown below: const { S3Client } = require('@aws-sdk/client-s3') const client = new S3Client({ region: 'us-east-1' }) It runs fine locally, but when I upload the code to a…
0
votes
1 answer

Dynamic key name for mongodb Realm

I'm making a digital Christmas Kalendar for a friend. Every day he can claim a Steam game. So in mongodb in the user account that I made for him there is a key called codes (object). The structure is as follows: _id: blbalbalba codes: { 1 : { …
Nilom
  • 13
  • 3
0
votes
4 answers

Access return value inside a nested if else in .then() Promise in javascript with axios

How can I access the function return value that is within inside .then() promise in javascript const verification = twil.verificationChecks.create({ to: phone, code: vcode }).then((verify) => { otp = verify.status; //twilio //…
Mugi Coder
  • 11
  • 4
0
votes
0 answers

Geting the Location of Realm file on a Mac

I am using a MacBook and I develop an android app using react native and realm database using Android Studio. I have realm studio and I need to open the realm file from where it is stored instead of downloading it first, so that i can view my real…
Amani
  • 227
  • 1
  • 10
0
votes
2 answers

Explain this code: uses a string as filter function

When reviewing a bit of Swift code in one project I supervise, I came across this: return (realm?.objects(ExerciseDBObject.self).filter("isDeleted == false")) as! Results What stuck out to me as a JVM/Python/JS programmer was the…
oligofren
  • 20,744
  • 16
  • 93
  • 180
0
votes
1 answer

realm-cli push failed after adding new node module

I added a node module (otp-generator) to my MongoDB Realm app using the realm-cli, and it worked as expected. I'm now trying to add another node module (twilio) to my MongoDB Realm app, but for some reason it now is giving the following error…
wristbands
  • 1,021
  • 11
  • 22
0
votes
1 answer

Dismissing SwiftUI Sheet Crashes with Realm Migration Error

I recently released an app into production using Realm and then needed to add fields to two object types. With a synced realm and additive changes, I'm able to read and write correctly. I spoke with one of the Realm team members on the forum and…
Kurt
  • 3
  • 2
0
votes
1 answer

How can I set current Project on MongoDB Realm Web APP using React.js

I am following the Task Tracker (Web) with Reaml, Apollo Client and React.js Tutorial and I am getting an on getting the user project. Below is my code export default function TaskApp() { const app = useRealmApp(); …
Dijiflex
  • 523
  • 1
  • 8
  • 26
0
votes
1 answer

Authentication fails with error "unsupported URL" in MongoDB Realm iOS SDK

I am trying to authenticate into my MongoDB Realm app anonymously through the Realm iOS SDK, but I am getting the following error: Task .<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002…
wristbands
  • 1,021
  • 11
  • 22
0
votes
1 answer

'"hrms-dev"' not found in 'aud' claim in Mongodb?

I am using mongodb and firebase for authentication purpose. I have enabled Custom JWT Authentication. PFA pic of authentication provider. and also I have mentioned metadata fields and audience("hrms-dev") but when I try to login, I am getting error…
Ramesh Reddy
  • 127
  • 2
  • 13