Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
Populate Nested Array without Objects In Mongoose?

I have the following document as an example:

[
  {
    _id: ObjectId("6206bb93686af95e81f45afa"),
    steps: [
      [
        '6206bb87686af95e81f45af9',
        '6206bb7a686af95e81f45af8',
        '6206bb7a686af95e81f45af8'
      ],
      [ '6206bb7a686af95e81f45af8', '6206bb87686af95e81f45af9' ],
      [ '6206bb87686af95e81f45af9' ]
    ],
    name: 'name',
    desc: 'desc',
    __v: 0
  }
]

I want to populate each id inside the nested steps with another Model. I do not have any Object keys here so I assume I can't use Mongoose populate chain syntax. How am I supposed to achieve this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!