Quantcast
Channel: Active questions tagged mongodb-atlas - Stack Overflow
Browsing latest articles
Browse All 219 View Live
↧

MongoDB connection error: MongoTimeoutError: Server selection timed out after...

I am trying to create a fullstack app reading the following tutorial:https://medium.com/javascript-in-plain-english/full-stack-mongodb-react-node-js-express-js-in-one-simple-app-6cc8ed6de274I followed...

View Article


How to connect to mi MongoDB compass?

Can't connect to mi MongoDB compass, have you seen this message?mongo db 2280064:error:10000438:SSL...

View Article

MongoDB Atlas Search with VectorSearch and filters

Take a query like this... (shortened the query for clarity)[ {"$vectorSearch": {"index": "myVectorIndex","path": "vectors.myVectorPath","filter": {"$and": [ {"name": {"$in": ["Bill Gates"] } }, {"$or":...

View Article

migrate materialized vues to mongo atlas

Given i have a postgreSQL database with foreign tables linked to mongo collections.And some materialized views exposing data from these foreign tablesI need to remove completely postgreSQLThe mapping...

View Article

Can not run db.fsyncLock() in a MongoDB Atlas cluster

I've deployed a MongoDB sharded cluster in MongoDB Atlas dedicated. For some reason i am trying to run db.fsyncLock() from a secondary. But It's giving me unauthorized error. I also tried many command...

View Article


Realm Error No Subscription for WRITE: When doing multiple subscriptions of...

I am trying to configure the realm with the help of the below function. Initially, there was only EmailAccount class after adding ApplicationAccount class while writing to EmailAccount cluster it is...

View Article

Connect to MongoDB Atlas using Delphi Firedac Driver?

I am struggling to connect to a MongoDB Atlas database using the Firedac component. I have the MongoDB Atlas connection string but am unsure how tosetup the connection in Delphi. I note that the Data...

View Article

'Authentication Failed' Error using MongoDB OIDC

I am trying to connect to a MongoDB Atlas cluster via pymongo using the MongoDB-OIDC authentication method, with Azure as the identity provider.I already setup the Azure provider and connected it to...

View Article


How to calculate embedding vectors using the OpenAI API for MongoDB vector...

I am trying to follow the example from the official MongoDB documentation.It mentioned that the search vector was based on the string "historical heist" using the OpenAI text-embedding-ada-002 model....

View Article


MongoDB atlas containers not separating from testcontainers

we are moving to mongodb atlas and I've started using the mongodb/mongodb-atlas-local container for local development, it bound to ports 27017:27017. Now I wanted to update our integration tests to use...

View Article

Image may be NSFW.
Clik here to view.

How to connect to MongoDB with certificate using DataGrip?

InformationI am trying to connect to MongoDB Atlas cluster using Datagrip as a DB client and authenticating by an Atlas managed x.509 certificate which I got when setting up a user in MongoDB Atlas...

View Article

Image may be NSFW.
Clik here to view.

Vercel creates new DB connection for every request

I'm working on a new website, and although things were working well as we developed locally we've run into an issue when we tried to deploy on Vercel. The app uses the Sapper framework for both the...

View Article

MongoDB Agent Accessing Container ID Instead of localhost/127.0.0.1 in Status...

I am encountering an issue where the MongoDB agent is trying to access the MongoDB container using the container ID (5c628e85248d:27017) rather than localhost or 127.0.0.1. This is causing a failure...

View Article


MongoServerError: command Insert is unsupported

I have a project in which I am creating a node API using express that will interface with a mongo DB atlas database and perform CRUD operation and send that data to the front endIn this part i am...

View Article

Image may be NSFW.
Clik here to view.

How to restore a mongodump that's one single file

A few months ago I did a dump of my mongodump db and it resulted in a single file instead of multiple bson and json files:I tried to restore it using:mongorestore --drop --db lodeep dumpdump is the...

View Article


Unable to Connect to MongoDB Atlas from MacBook but Works on Windows PC

I'm encountering an issue with connecting to my MongoDB Atlas database from my MacBook using Mongoose. The exact same code works fine on my Windows PC, but on my MacBook, I get the following...

View Article

MongoDB Atlas connection error: MongooseServerSelectionError, despite IP...

Issue: I'm working on a Node.js backend using MongoDB Atlas and Mongoose. The server is running fine on port 8080, but I'm getting the following error when trying to connect to the MongoDB...

View Article


Issues Connecting to MongoDB Atlas Using Mongoose in Node.js

I'm having trouble connecting my Node.js application to MongoDB Atlas using Mongoose. Here are the details of the issue and what I've tried so far:Context:MongoDB Atlas URI (sanitized):...

View Article

How to query MongoDB aggregate with collation option

I created a "brands" collection and then added an index collation: { locale: "en", strength: 2} on the "title" field. But when I try to query it using this collation it doesn't work as expected:const...

View Article

Need an advise regarding connection to Mongo DB from my application

I am creating a learning application and need to connect to Atlas MongoDB. I am able to connect from Compass but not able to connect from the application. I am getting an...

View Article

How do I display an element match field in the chart

I have a collection which has the sample data below:[ { 'StudentId': 1'StudentLoans': [ {'LoanName': 'A','StartDT' : '2024-09-01T00:00:00Z','EndDT' : '2024-09-01T00:00:00Z' }, {'LoanName':...

View Article


Why doesn't Mongoose's findById() method increment _id_ index usage in Mongo?

I have a collection where records are typically looked up directly by their _id property. This is done thousands of times per day by the backend application using Mongoose's findById() method.When I...

View Article


MongoTopologyClosedError: Topology is closed

In my web application, it works most of the time, but occasionally I get a 500 error, and sometimes I don’t.It works completle in local server, but the preblem is in the website that use MongoDB...

View Article

Image may be NSFW.
Clik here to view.

Why is MongoDB Atlas Vector Store not returning records when doing a...

I am working on a simple RAG using Spring AI and my MQTT server project available here. I swear I had it working once but I didn't commit and now it isn't working again. Basically I think this issue is...

View Article

weird error while trying to connect to mongodb connection string gotten from...

I am trying to connect to mongodb using mongoose and a connection string from MongoDB atlas but I keep getting the error below:TypeError: Cannot read properties of undefined (reading 'constructor')I...

View Article


How to query MongoDB Atlas from a shell script?

I've been trying to write a shell script to restore a MongoDB Atlas instance using a snapshot, and then query said instance to validate the results. While I can use API calls to get the snapshotIDs and...

View Article

How do I create a Github deployment pipeline for MongoDB Triggers?

I'm working on implementing a CI/CD pipeline for MongoDB Atlas Triggers and need help with the best approach for version control and automated deployment.Current SetupMongoDB Atlas (Cloud)Multiple...

View Article

Reading MongoDB Atlas DB from a Next.js web app

I am trying to read a MongoDB Atlas database from a Next.js app that I started to build on Heroku.For that I am following this document and this other one; but it does not quite go as expected.Here is...

View Article

Passing the result of a DB find() with props, to a react component

After reading data from a MongoDB Atlas database (in a Next.js app), using a server component. I want to pass the result (as props) to a client component (to provide some interactivity in the user...

View Article



Mongodb / atlas search: Many to Many relationship with huge collections

im modeling an app where user can stamps (up to 100 000 stamps).I created the following collections:users:{"_id": {"$oid": "xxx" },"email": "test@gmail.com", ...}stamps:{"_id": {"$oid": "ccc"...

View Article
Browsing latest articles
Browse All 219 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>