Skip to main content
Best practices
0 votes
3 replies
34 views

I'm using MongoDB with the .NET driver and trying to implement an optimistic concurrency pattern with versioning using UpdateOneAsync and IsUpsert = true. Here is my code: public Task UpsertAsync(User ...
Muhammed Furkan Güler's user avatar
0 votes
0 answers
49 views

I have a Node.js application using Mongoose against a single-node MongoDB replica set running in Docker. Environment: My application connects with a seed URI like this: const dbURI = `mongodb://user:...
taquion's user avatar
0 votes
0 answers
56 views

I use MongoDB.EntityFrameworkCore. I have 3 classes: Pod, Planet, Asteroid with inheritance from SpaceObject I want use the default Table-Per-Hierarchy (TPH) mapping for Planet and Asteroid to save ...
Troopers's user avatar
  • 5,492
-1 votes
1 answer
38 views

I am using a mongosh version 2.8.1 to login to a mongodb cluster. I have an encrypted private key which is legacy‑encrypted PKCS#1. My tlsCertificateKeyFile content includes this: 1:-----BEGIN ...
jnan's user avatar
  • 33
0 votes
0 answers
23 views

I'm having trouble connecting my NestJS/Express application to MongoDB Atlas. When attempting to connect, I repeatedly get the following error: Error: querySrv ECONNREFUSED _mongodb._tcp.<cluster-...
HarishSehlangia's user avatar
Advice
0 votes
3 replies
51 views

I am a learner and right now at Database thing and choose MongoDB to learn as my stack is MERN so, but I am very confused about what MongoDB actually is and is MongoDB Atlas part of it or is it the ...
Himansu Sekhar Behera's user avatar
Tooling
0 votes
2 replies
42 views

So My Doubt is, I have installed '[email protected]' Version on Mongodb atlas, I have also checked its data storage capabilities which works fine But as i am trying to run my code its Showing "...
Akshath P's user avatar
-4 votes
0 answers
36 views

We have a MongoDB Atlas Stream Processor that replicates a collection from one database to another on every document change. It works reliably with no errors, but latency is inconsistent: most of the ...
Jorge Queiroz's user avatar
3 votes
3 answers
122 views

I'm using the MongoDb .NET driver (v3.7) to replace string in array using ElemMatch to match the array string element. All examples I see regarding ElemMatch() involve matching an object in an array (...
Skippy VonDrake's user avatar
0 votes
0 answers
103 views

I have been trying to get the demo from mongodb's website for their Java driver to compile and I managed to do so last night; however when I launched my ide after work today to get started on the ...
Daniel anderson's user avatar
Advice
1 vote
1 replies
66 views

I'm interested in learning more about how MongoDB implicitly converts between BSON types. So far, I found: In which order are BSON values of different types sorted $gt & co silently convert ...
CLOVIS's user avatar
  • 1,078
2 votes
1 answer
108 views

I'm running MongoDB from this docker-compose file: services: mongo: image: "mongo:8.0.6" ports: - "27017:27017" After ~1 minute, MongoDB crashes. Here are the full ...
CLOVIS's user avatar
  • 1,078
-1 votes
1 answer
61 views

I'm using msys and Mingw64 to build mongo-cxx using cmake , I already have mongo-c shared libs installed (built earlier) cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DCMAKE_PREFIX_PATH=...
HeartBleed's user avatar
Advice
0 votes
1 replies
59 views

I've encountered a critical performance issue in MongoDB 8.0.15 - 8.0.20. I need your help diagnosing and finding a solution. After upgrading from version 8.0.14 to any of the versions 8.0.15 - 8.0.20,...
CyberOPS's user avatar
1 vote
1 answer
60 views

I have a MongoDB collection where each document contains an array field members. I would like to enforce a maximum array length of 3 when adding a new element. One approach I am considering is the ...
Amor Kiba's user avatar

15 30 50 per page
1
2 3 4 5
11688