Category "mongodb"

Express module.js:550 throw err; ^ Cannot find module

I'm trying to initialize a simple express app with the following code: const express = require('express'); const app = express() const bodyParser = require('bo

How to implement Pagination with Ktor and Kmongo

Problem: To Implement Pagination on the server side using Ktor and Kmongo. Tech Stacks: Kotlin as Programming Language. Ktor as Web Framework. MongoDb as databa

Django with NoSQL database

I am working with an Django application which uses Django 1.8 version. Most of the data we deal with is JSON formatted ones. We are trying to implement any No

Problem while rs.initiate() for setup docker-compose for replica set

I want to setup MongoDB replica set with docker-compose with only one node. This is my docker-compose.yml file: version: '3.7' services: mongodb1: image

Express js,mongodb: “ReferenceError: db is not defined” when calling a function

The code is set up this way: var express = require('express'); var router = express.Router(); var mongo = require('mongodb').MongoClient; function getData(){

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