Category "mongodb"

How can I call parent function in a child React component?

So I want to add delete button, but when I click it I see error: 'TypeError: props.onDeleteTask is not a function' - in component - SingleTask.js //../component

How to use regex or any other operator with whereIn clause

Is there any way we can use operator or regex as we normally do with the whereIn() clause. I want to use something like this $query->whereIN(name,'like','%te

MongoDB general install question about replica set

I have a server where I have a mongodb database of 150Gb There are 8 databases in it with intensive write activity (as I'm storing tweets) I notice some latency

Error when trying to create dump of mongodb database

i tried to create a dump of a mongodb database on remote server which is running centos,nginx,mongodb v4.0.18 using the following command.. mongodump --host lo

How to filter documents by having a list of words which should not be inside of them in MongoDB Atlas Search?

For example I have the array ["java", "perl", "scrum"] and the following documents: { id: 1, title: "Java Software Developer" }, { id: 2, title: "Senior

DJS Cannot read properties of null (reading 'premium')

In my code, before it does anything I have it check if there is data and if there isnt then make a new mongodb collection but when running the command and there

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