All Questions
50,526
questions
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 ...
0
votes
0
answers
24
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 ...
0
votes
0
answers
21
views
looking for good practice to design the API usage tracing on the user base [closed]
I am developing a web API with node.js for people to fetch the data insight.
on the admin side the administrator should be able to check the usage of each API, for example the statistic of how many ...
-1
votes
0
answers
8
views
Mongoose Migration Strategy: Handling Legacy Table with Virtual Fields [closed]
I'm migrating a Node.js application from Mongoose 5.9.16 to 8.2.3. My primary concern is managing a legacy table,customer_favdrinks__drinks_favoritedcustomers, that contains data related to a many-to-...
0
votes
0
answers
33
views
React / API route is unable to post the form data
I have an Add Product form. In this form, there is an Upload Image field to upload jpg and png from your computer. Anyway it doesn't work and products get uploaded without image. My aim is to convert ...
0
votes
0
answers
12
views
Mongoose Connection Not Available in Jest Tests After Using Global Setup and Teardown
I'm setting up a MongoDB container for my Jest tests using the testcontainers library and Mongoose. However, I'm encountering an issue where the MongoDB connection established in the global setup file ...
-3
votes
0
answers
19
views
How do i fetch data and display in MERN? [closed]
What are the steps to be followed? What are the packages that need to be installed? I am also willing to share my codes if needed.
I tried using Axios and Cors.
This is my JSX code.
import { useEffect,...
-2
votes
0
answers
8
views
How to Create Separate MongoDB Databases for Each Admin User and Manage Connection Strings in a MERN Stack Application [closed]
I am currently working on an inventory management system using the MERN stack (MongoDB, Express.js, React.js, Node.js). I have a requirement to create a separate MongoDB database for each admin user ...
0
votes
1
answer
28
views
Post request working fine in Postman but not in browser
When sending SignUp and Login data through Postman, it's getting stored in Mongodb as well as showing success message but when requested through React axios, it is showing error in console as
POST ...
1
vote
0
answers
34
views
Search products (documents) based on their ratings using mongoose
I was creating a full stack e-commerce website, when i came across this problem. I wanted to add a search filtering based on reviews star. The client sends query and minRatings to the server and the ...
-2
votes
0
answers
18
views
Problem with Data fetching MERN and showing it on frontend screen [closed]
I was following along this tutorial to get started with MERN and have not been able to get over a problem that I'm facing.
[https://youtu.be/MEab_a19ZGk?si=lQEatLzCPJFlkMiE]
This is the video I've ...
0
votes
1
answer
22
views
Mongoose connection drops at all endpoints
I’ve been working on a project intermittently for some time now. Recently, after transitioning to a new computer, and router none of my endpoints respond
I’ve taken several troubleshooting steps ...
0
votes
0
answers
23
views
http delete request to mongodb returned no message [closed]
const express = require('express');
const router = express.Router();
const { client} = require('./db');
const { ObjectId } = require('mongodb');
router.delete('/:id', async(req,res)=&...
1
vote
1
answer
49
views
Handling Form Data and User Registration in MERN Stack: Issues with FormData and Validation
I am working on a MERN stack application and I'm having trouble registering a new user. I have a form on the frontend that collects user data and sends it to the backend. The form data includes fields ...
0
votes
0
answers
43
views
Having trouble running a project locally/ npm install, dependency issues
I am trying to run an example project locally. Its a full stack project so it needs to access a mongodb database. I downloaded the project files, and ran npm install so I could get everything set up, ...