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 – How to update some collection with different query parameters and with different set values?

I have an array of mongoDB collection - [ { "_id": "630499244683ed43d56edd06", "userId": "630499234683ed43d56edd05", "isPaid": "true" }, { "_id": "6304c19bda84477b41b4bbfa", "userId": "630499234683ed43d56edd05", "isPaid": "true" }, { "_id": "6304c1b5da84477b41b4bbfb", "userId": "630499234683ed43d56edd05", "isPaid": "true" }, { "_id": "6304c1cbda84477b41b4bbfc", "userId": "630499234683ed43d56edd05", "isPaid": "true"…

VIEW QUESTION

Mongodb – Extract list of data from collections

I have a list of collection like the following in mongodb { _id: ObjectId("6087feeef467a4320883daf3"), name: 'group 1', admins: ['adam', 'ken'] } { _id: ObjectId("2087feeef467a4320883daf3"), name: 'group 2', admins: ['rebecca'] } { _id: ObjectId("9987feeef467a4320883daf3"), name: 'group 3', admins: [] } I…

VIEW QUESTION
Back To Top
Search