skip to Main Content

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

How to fix the docker setup issue

I'm developing a site with MERN stack and I want to do all the things with Docker. But I have trouble with connecting to MongoDB with Docker. Here's my docker-compose.yml file. version: "3.7" services: backend: build: context: ./node_backend dockerfile: Dockerfile.dev…

VIEW QUESTION

MongoDB : – $lookup array inside object

I have 3 collections User, Attendance, Detection User collection Document { "_id": "60dd781d4524e6c116e234d2", "workerFirstName": "AMIT", "workerSurname": "SHAH", "workerId": "1001", "locationName": "HEAD OFFICE", "workerDesignation": "IT", "workerDepartment": "IT", }, Attendance Document { "_id": "61307cee85b5055a15cf01b7", "employeeId":"60dd781d4524e6c116e234d2", "Date": "2022-11-01T00:00:00.000Z", "duration": null, "createdAs": "FULL-DAY", "detections":…

VIEW QUESTION
Back To Top
Search