skip to Main Content

Minus a day from date in MongoDb

I want MongoDB query to minus a day from existing date in a column and update the same. query to update a date like original date = '2024-12-24T18:30:32' updated date = '2024-12-23T18:30:32' and how to execute the query on terminal…

VIEW QUESTION

MongoDB Join Fields Aggregation

In MongoDB, I have a collection of different movies with their years. Consider these documents: { "_id" : ObjectId("63a994974ac549c5ea982d2b"), "title" : "Destroyer", "year" : 1907 }, { "_id" : ObjectId("63a994974ac549c5ea982d2a"), "title" : "Aquaman", "year" : 1902 }, { "_id" :…

VIEW QUESTION

MongoDB lookup – using $lookup

so i have document for users with this structure in JSON format: [ { "_id": { "$oid": "6369aeb83ce0f8168520f42f" }, "fullname": "Jokona", "password": "$2b$10$MUAe7XIc/xtJTGVh/y1DeuShCARbwxCSejUbHaqIPZfjekNrn0.Yy", "NIK": "MT220047", "status": "active", "department": "Logistic", "position": "Management Trainee", "Group_Shift": "Non Shift", "role": "admin", "createdAt": 1667870392, "updatedAt":…

VIEW QUESTION
Back To Top
Search