Category "mongodb"

Pandas dataframe to mongoDB document

I have a pandas dataframe that I import to a MongoDB database. Each row of the dataframe is transformed into a document like bellow. { title: 'Spaci

Test Suite Failed to run

Error thrown: "Exceeded timeout of 5000 ms for a hook. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 24 | &

Unwind object array but preserve its parent

I want to unwind some data, but preserve the parent. I am getting the whole flattened objects, but missing the first one. I want to keep that one. How can I do

post api pblm in backend

const newItem = { name, price, img, detail, email } fetch("http://localhost:5000/add", { method: "POST", header: { "content

Exception in monitor thread while connecting to server <xyz> using mongo-driver-core-4.1.2 jar

I have upgraded mongo java driver <mongodb.version>3.12.8</mongodb.version> to mongodb-driver-legacy 4.1.2. since then when ever i am trying to up

Small images (<4MB) in MongoDB, should I use gridFS?

Rather simple question and request here, but haven't been able to find a firm answer yet. I am new to multer, Node, and MongoDB and it's been a bigger struggle

Any idea why I would get "name 'sys' is not defined" after creating a new MongoClient object in Python?

I'm working on a Discord bot that saves some data to a mongodb database in response to some user commands. The weird thing is it works on repl.it, but I get thi

PyMongo Atlas Search not returning anything

I'm trying to do a full text search using Atlas for MongoDB. I'm doing this through the PyMongo driver in Python. I'm using the aggregate pipeline, and doing a

JSON Render Issue in Date Object Laravel and PHP 7.4

I am facing a stranger issue in php 7.4 inside Laravel. When I am trying to log the results using dd() function for any collection its gives me that my date fie

How to solve auto sample data storing in data collection in mongodb database?

After creating a data collection in a particular database some sample data collection is added automatically daily in that database. After deleting those sample

Why doesn't load data into my collection? mongodb

This is what appears on my mongo database: This is my app.post to insert the data, when I Submit it console.log the object with the dates but with create It ju

TypeError: (0 , _expressGraphql2.default) is not a function

Trying to create a server for my application using graphQL server, but keep getting the error below. I have tried debugging with similar issues on this site but

How to display subdocuments on frontend i am using mongodb as the database

This is the front end. I have made some changes you can check out my repo if anyone has any answer to this it'll be great use i think there is there a way to li

mongoDb - How do I delete an object from a nested array

"ProductCategory": [ { "_id": "6246e0d09b16cf549256ed75", "name": "Arduino Boards", "desc": "this is for demo purpose"

mongodb functions from node workers. Cannot read properties of undefined

Trying to save some data into mongodb via node workers. I tested my crud api and that wprks but when I make the call via node worker its coming up undefined. I

How can I filter MongoDB Database from Pymongo in Flask App?

I am trying to query my database passing as a parameter a string. Some days ago it worked, but suddenly it stopped working. Is there something wrong I am missin

How can I filter MongoDB Database from Pymongo in Flask App?

I am trying to query my database passing as a parameter a string. Some days ago it worked, but suddenly it stopped working. Is there something wrong I am missin

MongoDb - WildCard $search slow issue - realm query

I have a MongoDB collection with almost 200.000 documents. Inside each document, I have a "Localizations" object containing the "Keywords" field. Contains data

MongoDB Group by field, count it with condition

I would like to count different hu for a shipment. So I write this query but how I can count different hu group by shipment ? my query : db.eventstranslated.agg

Partition not working in mongodb spark read in java connector

I was trying to read data using MongoDb spark connector, and want to partition the dataset on a key, reading from mongoD standalone instance. I was looking at t