Category "mongodb"

"unexpected identifier error" in pagination function

although I passed the model variable in the parameters, it doesn't read them and gives a syntax error of unexpected identifier... what is the issue ....any insi

Problems with mongo csharp driver version

I use the mongo csharp driver version 1.9.1. But, I have a problem with this dll. The exception is: Could not load file or assembly 'MongoDB.Bson, Version=1.9.

mongoimport choosing field type

When importing data from file (csv in my case) mongoimport automatically choose data type for each field. Is it possible to choose data type manually for speci

Does mongo regex query have character limit, if the regex search string is more than that limit it throws error

I am seeing mongo regex query not returning result when the regex searched string is very big, instead its throwing error. I have a scenario where I append lot

Not able to create sharded collection

I have a mongodb Cluster with one config node(replication),one query node , and one shard node(with replication). I tried to create sharded collection but it is

MongoError: Cannot call abortTransaction twice; MongoError: Cannot call abortTransaction after calling commitTransaction

When I run the send route I have error: MongoError: Cannot call abortTransaction twice and MongoError: Cannot call abortTransaction after calling commitTransact

MongoDB - can't run because of SELinux is preventing mongod from open access on the file /proc/sys/net/ipv4/tcp_fastopen

After install, my mongod server was running well. I have created user and restart the server without issue. But now when modified gonfi file by adding 0.0.0.0 t

Value not saving in mongodb

const serverS = await server.findOne({ guildID: message.guild.id }); serverS.settings[1]["links"] = true; serverS.save() The code I use ^^^^ So when it saves t

How to escape @ in a password in pymongo connection?

My question is a specification of how can i validate username password for mongodb authentication through pymongo?. I'm trying to connect to a MongoDB instance

Service unavailable error while using MongoDB, ElasticSearch and transporter

I am trying to use the transporter plugin to create a pipeline to sync a MongoDB database and ElasticSearch. I am using a Linux virtual machine (ubuntu) for thi

How to search the database so that it does not show certain things (I do not know how to write it)

Discord.js 13.6.0 | Node.js 16.14.2 | Mongoose 6.2.3 I want to do so that my bot searches the database to see if the guild should be removed or added Example I

connection times out when trying to connect to mongodb atlas with python

I'm trying to connect to my mongodb atlas cluster but i keep getting timed out as soon as i try to do something with my db. The db i use was created in mongos

How can I connect to Mongodb Atlas

I am trying to connect to MongoDB atlas from node.js but I keep getting an error. I have whitelisted my ip address in database access and also allowed all ips b

How to enable auditing for MongoDB via Annotations in Spring

I wanted to enable some auditing features, such as @CreatedDate. I am not using Spring xml configuration file, so I cannot add mongo:auditing to Spring configur

JSON reader was expecting a name but found ':'. in Mongodb Java

I am storing my data from external file to mongodb in localhost. it's quite huge dataset of volume 1.70GB with ~10 million tweets. While importing from file to

Can i know how to import the database in mongoDB atlas?

I would like to know a suitable solution to import database in the momgoDB atlas.

Received an unhandled rejection error every time I save something to my database

I keep getting this error whenever I save something to the database. Regardless if its numbers, text ect, it happens and I have no idea why. Two months prior ev

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'unlink' of undefined at Grid.remove

I'm trying to delete a file by its id using gridfs but I get this error when calling the delete API. Controller : let gfs; connect.once("open", () => { gf

Updating the path 'x' would create a conflict at 'x'

This error happens when I tried to update upsert item: Updating the path 'x' would create a conflict at 'x'

Node+Express+MongoDB Native Client Performance issue

I am testing the performance of Node.js (ExpressJS/Fastify), Python (Flask) and Java (Spring Boot with webflux) with MongoDB. I hosted all these sample applicat