Category "mongodb"

MongoDB and Express js connection problem (Bad auth code 8000)

My port is 5000 MongoServerError: bad auth : Authentication failed. at Connection.onMessage (E:\React\Projects\assignment11\express\node_modules\mongodb\lib\cma

TypeError: Cannot read properties of null (reading 'items')

Error: throw er; // Unhandled 'error' event TypeError: Cannot read properties of null (reading 'items') at C:\Users\shiva\Desktop\Web Development\todolist\app.

mongodb.service dies after running some hours in Ubuntu

I have used mongodb(v3.6.8) for my server(Ubuntu 20.04), it works well for years. Recently,it be killed and failed to restart by systemd after running some days

Mongodb: attaching the column to every array and object from a MongoDB and create csv using pymongo

I am still learning Mongo how to extract the data and load to relational database. I am trying to extract one of the column and add that to csv for all the arra

product validation failed: describtion: Path `describtion` is required., name: Path `name` is required

when open seed page i get "product validation failed: describtion: Path describtion is required., name: Path name is required." instead of "seed opened", how I

MongoDB "IN" filter Issue

I am trying to query mongodb collection using Aggregate and IN Filter, like this var filters = Builders<Model>.Filter.In(x => (Guid)x.Id, listOfIds);

How to display Mongo data in Front End in MERN

I am working in MERN Stack and i am stuck at a part where i have to display the data of MongoDB compass on the Web page in a designed way i am able to display a

Update one property in MongoDB and update UI without refresh the page

I am trying to update one property Like I have a few properties, product name, price, quantity, supplier, and description. I am sending all the updated quantiti

C# MongoDB Driver 2.15.0 unable to execute In Query with Linq

I am trying to get my resultset from MongoDB. I need to use In filter here. Here is my code that tries to get data. IMongoCollection<VaersVax> vaersVaxCol

How can I solve this 400 Error ? "message: "Variable \"$listingId\" of required type \"String!\" was not provided.","

This is my Mongoose Schema const mongoose = require('mongoose'); const ListingSchema = new mongoose.Schema({ listing_id: { type

1TypeError: document must be an instance of dict, bson.son.SON, bson.raw_bson.RawBSONDocument, or a type that inherits from collections.MutableMapping

I am new at pymongo, but have a decent knowledge on mongoDB So basically I have a list of strings, then I converted it into a dictionary using key as integer, s

Orion not using FIWARE Service on Kubernetes

I'm having a weird issue using Orion on Kubernetes. When using Orion 2.5 (also happens with 3.6) and MongoDB 4.4 on Docker-Compose, everything works as expected

How to add spinner for loading to fetch API from MongoDB?

Custom hook .js import { useEffect, useState } from "react"; const UseHook = () => { const [items,setItems]=useState([]); useEffect(()=>{

Getting null when I use context.query with getServerSideProps() in Nextjs?

Intro Basically, I am building an e-commerce website. But I got stuck in this problem while saving the order details after I click payment button (although I ha

How to show the value of an foreign key in the frontend?

I want to show the value of injurydiseases in the frontend of Animals AnimalModel.js injurydiseases: { type: mongoose.Schema.ObjectId, ref: 'injurydisea

Heroku push for node Js app stuck at Mongodb connection

Just curious if anybody has come across this error. Might be silly. Seems when I am trying to deploy a Node JS express API with a MongoDB atlas connection it ha

Match elements before and after some criteria

Suppose I have an ordered (by $sort aggregation pipeline stage) list of documents: { x: 0 } { x: 1 } { x: 3 } { x: 4 } { x: 5 } { x: 6 }

PyMongo aggregation function

Need solution of code which is aimed at finding out the total number of movies by genre. The code I am using is: agg_result = movies_collection.aggregate( [{"$m

Intermittent (time dependent) error when using Node Package rate-limiter-flexible in Express Node.js application

My overall goal is to apply the basic logic of the package "rate-limiter-flexible" for my Express Node.js application. I've gotten the basic functionality with

Not able to establish connection between mongodb and Springboot through app.properties file

I want to establish connection with mongodb through app.properties files in Spring boot. Currently, I am establishing connection through Uri variable declared i