skip to Main Content

How to use nested query using &or with &any in mongodb?

I'm learning mongoDB queries and have a problem given my collection looks like: "filename": "myfile.png", "updatedCoordinates": [ { "xmin": 537.640869140625, "xmax": 1049.36376953125, "ymin": 204.90736389160156, "ymax": 714.813720703125, "label": "LABEL_0", "status": "UNCHANGED" }, { "xmin": 76.68355560302734, "xmax": 544.8860473632812, "ymin": 151.90313720703125, "ymax": 807.1371459960938,…

VIEW QUESTION

Mongodb – nodemon app crashed – waiting for file changes before starting. Can someone sort this out please

import express from 'express'; import bodyParser from 'body-parser'; import mongoose from 'mongoose'; import cors from 'cors'; const app = express(); app.use(bodyParser.json({limit: "30mb", extended: true})); app.use(bodyParser.urlencoded({limit: "30mb", extended: true })); app.use(cors()); const CONNECTION_URL = 'mongodb+srv://humoudmajid:[email protected]/?retryWrites=true&w=majority' const PORT = process.env.PORT || 5000;…

VIEW QUESTION
Back To Top
Search