Category "mongodb"

Docker - Mongo DB instance not connecting with application

I am using docker mongo with my aspnet core application but I am unable to make connection with mongodb which is running under container. Although I am able to

Vercel: Task timed out after 10.01 seconds

I recently deployed a Next.js application for a software engineering boot camp. I am using Vercel for hosting the web app. The problem I am having has been spok

Test ignored and failing when running IT test in Spring Boot (MongoDB Test Container)

I am trying to run an IT test using a MongoDB test container. However, I get the following error when I run the test com.github.dockerjava.api.exception.Interna

Cascade Delete in mongo

I am new to MongoDB. I created 4 collections & they are connected with each other. (I am using node.js to write it) Here, it's my question. How can I dele

MongoDB sets my database to 'test' automatically. How to change it?

mongoose.connect(process.env.DATABASE_URL, {useNewUrlParser: true}); const MyModel = mongoose.model(mymodel, new Schema({ name: String })); This creates a dat

Uninitialized constant User::ChatRoom

I get this error NameError (uninitialized constant User::ChatRoom): app/controllers/users_controller.rb:20:in `create' Here is my user.rb file class User in

Invalid transport, must be an object with a log method winston mongodb logging

I want to store my error logs in mongoDB collection. I am using winston & winston -mongoDB. Getting the error: throw new Error('Invalid transport, must

The value of "offset" is out of range. It must be >= 0 && <= 17825792

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out

MongoDB optimize indexes for aggregation

I have an aggregate on a collection with about 1.6M of registers. That consult is a simple example of other more complex, but illustrate the poor optimization o

Mongodb Node.js Express how should the learning ranking be and what do they do

1 - how should the learning ranking be (Mongo db,Node.js,Express) 2 - is it only available for the web or is it also available for mobile? 3 - What do they do

Mongo Transporter PipeLine Data MisMatch Issue

I am using transporter pipeline to get sync my NoSQL DataBases between Source DataBase Mongo (Version=3.4) to Sinc Database Mongo (Version = 4.4). Here I establ

MongoDB $lookup with conditional foreignField

Playground: https://mongoplayground.net/p/OxMnsCFZpmQ My MongoDB version: 4.2. I have a collection car_parts and customers. As the name suggests car_parts has c

MongoDB - How to find for both string and string array

I'm a beginner at MongoDB. I want to find documents in MongoDB by favorite.foods. Here are documents { "_id":1, "favorite": { "color":"red", "foods"

How can i upload audio file to Cloudinary with Node.js?

i deeply need help with this audio file upload to cloudinary issue I have had for several days now. I tried many times to make it work, but i am still strugglin

MongoDB won't install on my mac. I installed homebrew in order to install Mongodb but I'm getting some error messages

I used the following command to install mongodb: my-MBP:~ user$ brew install mongodb: and this was the output Error: No available formula with the name "mon

"The $changeStream stage is only supported on replica sets" error while using mongodb-source-connect

I get an error when running kafka-mongodb-source-connect I was trying to run connect-standalone with connect-avro-standalone.properties and MongoSourceConnector

Getting java.lang.NoSuchMethodError: org.springframework.cglib.core.ReflectUtils.defineClass while inserting data in mongo using Spring MongoTemplate

I am trying to insert some data (List of Objects) into mongoDB using Spring MongoTemplate and I am getting an exception: 14:08:04.430 [main] DEBUG org.springfr

Springboot With Mongodb Error while using find*() query

I am getting the following error: at com.aks.springStorage.SpringStorageApplication.main(SpringStorageApplication.java:22) [classes/:na] Caused by: org.sp

Mongo Dart SubDocument Updating and Editing

Hello I have a data like that: { "_id":ObjectID(), "field1":"field1 value", "group1":{ {"name": "name1", "favoriteBooks":{"book1","book2"}}, {"name": "name

Nestjs Mongodb always return empty array

I am trying to create a simple nestjs project that connects to mongodb. I followed the official documentation of nestjs, but connected to my own db with "user"