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

All Questions

Tagged with
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
24 views

What can cause Playwright to duplicate an action?

I'm writing tests for a small MERN stack blogging application as part of an online course I'm following along with. I've written a few Playwright tests for the user log in, and blog creation. However, ...
Stephen's user avatar
  • 97
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 ...
Rumeysa Gelgi's user avatar
-2 votes
0 answers
46 views

Error: Objects are not valid as a React child (found: object with keys {message}). If you meant to render a collection of children, use an array [closed]

I'm not able to solve the problem even after reading several related posts. Basically, I'm trying to post some data from my React app to MongoDB using axios. However, it seems the data format is ...
Eric's user avatar
  • 7
-2 votes
0 answers
19 views

how ISODate can be passed in JSON through mongodb helper functions [closed]

I am using JSON and mongodb shell helper functions to generate the report from the UI.I tried to convert the date to String but the Date is defined in MongoDB Database as ISO Date and I am getting ...
Shirisha's user avatar
-1 votes
0 answers
37 views

Parameter \"obj\" to Document() must be an object, got \"\" (type string)

I have a problem, in Postman, the result of the request is this: This is my Model: const mongoose = require("mongoose"); const mongoosePaginate = require("mongoose-paginate-v2"); ...
Gael Maldonado's user avatar
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, ...
tb444's user avatar
  • 1
0 votes
0 answers
26 views

issue with connecting mongodb through mongoosejs

so I'm using this type of code to connect to mongodb - github link to code const mongoose = require('mongoose') cosnt s = "my connection url" mongoose.Promise = global.Promise ...
Xx-Mohit-xX's user avatar
0 votes
1 answer
37 views

Mongodb aggregate multiple collections super slow

New to Mongo so bare with me, but cannot figure out best (fast) solution. I have three different collections: Shipments, Tracking, Messages I'm trying to join two simple fields from the Tracking and ...
Stephen Clark's user avatar
0 votes
0 answers
24 views

Get MongoDB Stream Real Time data in the front facing

I am trying to get the my MongoDB Atlas changes updated in real time in the front user facing. I am trying to implement the Mongo Change Stream functions. I am able to get the changes in my file but ...
Wanderson Castro's user avatar
1 vote
1 answer
90 views

TypeError: Cannot read properties of undefined (reading 'collection') (mongodb connection)

am trying to connect the mongodb database and i get the error as shown below It gives me error TypeError: Cannot read properties of undefined (reading 'collection') at C:\Users\Joh\Desktop\...
Johannes Mwasanyila J Chriss's user avatar
0 votes
2 answers
44 views

"Cannot use a session that has ended" error when querying MongoDB

i am trying to get a string from all documents in a mongo db collection, but when it starts it give me an error: 106 | * not subject to semantic versioning compatibility guarantees and may change ...
Matteo Donati's user avatar
0 votes
3 answers
52 views

TypeError: Cannot read properties of undefined (reading 'map') in react-js

import React, { useEffect, useState } from 'react'; import axios from "axios"; import './List.css'; import { toast } from "react-toastify"; const List = () => { const url = &...
Ketan Chauhan's user avatar
0 votes
2 answers
60 views

Using an outer Boolean variable inside a mongodb aggregation pipe line logical operator $or

I have to check a Boolean flag and base on its condition return different data result. for example I have a collection of books and their prices, normal result of query is prices matching 10, BUT IF ...
Rya.M's user avatar
  • 1
0 votes
0 answers
36 views

Accessing Another Item Of a Schema From A Function In A Schema - Mongoose

I want to add a feature so users can make their email public but I don't want them to do that unless they verify their email address. for that, I have 2 keys, email.publicState for the User to Modify ...
AmirparsaDD's user avatar

15 30 50 per page
1
2 3 4 5
1596