Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [mongodb]

MongoDB is a scalable, cross-platform, high-performance, open source, document-oriented NoSQL database. It supports a large number of languages and application development platforms. Questions about server administration can be asked on https://dba.stackexchange.com

mongodb
0 votes
0 answers
6 views

Mongoose Timeout Error: MongooseError: Operation `products.updateOne()` buffering timed out after 10000ms

I have this updatemrp.js api which updates the amount field according to the corresponding partNumber in the given excel file. It is working fine for 5-10 updates, but when the dataset is large (100+) ...
Vanshu Galhotra's user avatar
0 votes
1 answer
15 views

Authentication failed while connecting to docker-compose mongodb via springboot application

docker-compose.yml version: '4' services: mongodb: image: mongo:7.0.5 container_name: mongodb ports: - "27017:27017" environment: MONGO_INITDB_ROOT_USERNAME: ...
M Hari's user avatar
  • 1
-1 votes
1 answer
44 views

Get all keys in a dictionary [closed]

I have a collection of objects that contain a dictionary, and would like to extract only the keys and not the values in the dictionary (which are much larger than the keys, unlike in the example below)...
Vladimirs Kacs's user avatar
-1 votes
0 answers
11 views

Having issues with a messenger clone

So everything was working fine until I decided to add a header component to my messenger clone.This specific problem has returned null and crashed my application like 5-6 times. Can anyone help why ...
Suj K's user avatar
  • 1
0 votes
1 answer
24 views

Mongo searching in a nested query

I have documents like this { "_id" : 1, "item" : { "code": "ABC1", skus: [ " c1", "c2 ", "c3"] } { "_id" : 2, "item&...
Sree's user avatar
  • 1
1 vote
0 answers
13 views

Java MongoDB not mapping extended classes

I have a base class Person and 2 classes that extends from it. When I insert instances of these classes into the database, it keeps all the info about the extended classes as shown below. Below is the ...
pomipiwimo's user avatar
0 votes
0 answers
12 views

Laravel MongoDb Aggregation For unique and null

I want to retrieve documents from mongoDb by using MongoClient for parent_id is only first of same and parent_id is null.Only one aggregation. $search[] = [ '$group' => [ ...
Wai Yan's user avatar
0 votes
1 answer
21 views

Can't use variable field of mongodb in javascript

I have retrieved one document from mongodb, in that I have one array and I want to loop through that array but I can't do that. If I loop through that it consider whole array as one element, this is ...
Just what I like's user avatar
0 votes
0 answers
15 views

Typescript: Circular Definition and Cannot Find Module Errors During Build

I cloned a project from GitHub and encountered some issues while trying to build it. I've already installed all the necessary dependencies using npm install, and I'm running MongoDB through the mongo ...
dawid_Pascal's user avatar
0 votes
0 answers
22 views

How to know when $merge as completed in MongoDB

I have an aggregation pipeline ending with a $merge stage. db.collection("mycoll").aggregate([..., {$merge:{into:"myview"}}]) I have to generate materialized views at run-time and ...
Jean-Samuel Girard's user avatar
0 votes
1 answer
19 views

Can't connect to MongoDB server with Tableau or Python but can with Compass on Windows 10

It was extremely easy accessing MongoDB server by pasting conn string into MongoDB Compass on Windows 10 but when it comes to Python or Tableau it returns errors For Python its either timout or: ...
Alexander Ka's user avatar
1 vote
1 answer
38 views

Sort by field of an object in array where id matches the specific element object id in the array NestJS , Mongodb

I have following result data which is not properly sorted according to my needs [ { "_id": "defmongodb_objectId", "categories": [ { "category&...
M Nouman's user avatar
  • 569
0 votes
0 answers
22 views

Each array should contain unique element using Facet in MongoDB

Here I'm adding the Mongo playground URL how my schema structure look like Now I want 3 unique array elements which are mostPurchased, latestRewards and suggestedRewards. So I'm trying to achieve by ...
ram12393's user avatar
  • 1,346
0 votes
0 answers
24 views

Prevent MongoDB's bulkWrite from returning (too much) data

I use MongoDB with the Node.js driver to bulkWrite around 10,000 rather large documents (1-5 MB per document) from an AWS scheduled task to MongoDB instance every hour. I would expect the inbound ...
fromin's user avatar
  • 67
-2 votes
0 answers
17 views

MongoDB inserts super slow after indexing [closed]

I have a MongoDB collection that is almost 1 TB in size. The collection already has indexes in place for faster querying. However, when I try to add new data, the insertion process becomes extremely ...
Alhasan Mohammed's user avatar

15 30 50 per page
1
2 3 4 5
7