Category "mongodb"

Error uploading Multipart to MongoDB using Ktor

I'm trying to upload a JPEG to MongoDB using Ktor and Kotlin but keep getting an error: java.io.FileNotFoundException: /document/image:32: open failed: ENOENT (

How to skip a document from retrieving in MongoRepository if it causes an error?

I'm working on a web application built using SpringBoot as backend and MongoDB as DBMS. I'm showing all the latest posts in a web page. In the PostRepository.kt

MongoDB insertMany and skip duplicates

I'm trying to insertMany() items into my Mongo database but I would like to skip duplicate IDs. I'm using Node.js and mongodb. I have some data: const myExam

MongoDB Scheduled Trigger Save Error -- What to Return?

This problem is very annoying. So, I am making a scheduled trigger run every 24 hours. It simply gets items from one collection does some data processing then a

Why it's going in else part even there is value in document that satisfying the if condition?

I want to count total number of Documents with same value for details.iseligible.value, i.e if there is two 'Yes' for details.iseligible.value then count for 'Y

npm install returns error. Showing "no such file directory ../node_modules/mongodb-client-encryption/deps/lib/...'

I have a pretty big NextJS project going on, using mongodb but I havent been able to run npm install on it as it gives the following error. npm ERR! code 1 npm

How can i solve my Error by Connecting golang with MongoDB?

I have a problem with connecting the MongoDB to an API that is written in Golang. If you can help me, I would be really grateful. I don't find anything when I g

The procedure entry point BCryptHash could not be located in the dynamic link library while setting up MongoDB shell

When I tried to setup the MongoDB shell version 4.4.6 in my windows 8 system I am getting the following error:- The procedure entry point BCryptHash could not b

Mongo RealmSync Getting Error: Encountered non-recoverable resume token error

I am getting the below error Mongo RealmSync, after that i need to manually re-enable the sync process. Anyone know, what is the cause of that error, encountere

python mongoening time series collection support

I was looking for a solution for storage and retrieval of time series data. As I have mongodb set up already in my project, I searched for a solution with mongo

Is it possible to run Mongoose inside next.js api?

I'm building a website for my sister so that she can sell her art. I am using Next.js to set everything up. The website renders the artwork by grabbing an array

Docker Compose MongoDB docker-entrypoint-initdb.d is not working

I am using following docker-compose file version: '3.7' services: db_container: image: mongo:latest restart: always environment: MONGO_INITDB_ROOT_

StitchServiceError {message: "insert not permitted"} mongodb

I'm using mongodb stitch for backend with Users can read all data, but only write their own data template. Logging in with email/password is working. Ho

Next.JS and Mongoose models

I'm building a pretty simple next.js app for a client and for my life I cannot figure out why I keep getting Cannot overwrite User model once compiled. It seems

Use req.user instead of User.findOne when updating MongoDB sub-documents?

I am using Passport.js for Express, which already holds the current user in the session variable req.user. Yet when I try to update a MongoDB database I can onl

Use req.user instead of User.findOne when updating MongoDB sub-documents?

I am using Passport.js for Express, which already holds the current user in the session variable req.user. Yet when I try to update a MongoDB database I can onl

Poor Write perfomance with MongoDB 5.0.8 in a PSA (Primary-Secondary-Arbiter) setup

I have some write performance struggle with MongoDB 5.0.8 in an PSA (Primary-Secondary-Arbiter) deployment when one data bearing member goes down. I am aware of

Strength parameter in collation not woking in in Mongoose

I would like to use mongoose in order to send a query to get data but it has to be case insensitive. I'm doing this: model.find({ name: /etoile/i }).sort({ po

Searching numbers as keywords or strings with Mongo Atlas Search (as possible in Elastic Search)

Sometimes it's useful to allow numbers to be treated as keywords or strings when using a search index. For example, suppose I have transaction data something li

How to update exists value (type: string) to array of ojbect and object in mongoDB?

I have following documents: [ { "_id": "6245131fdbcda3639d75c951", "username": "joy", "description": "description english", "product_code_orig