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

277
Views
Parámetro no reconocido para $ filtro: límite MongoDB-Mongoose

Tengo el siguiente error en mi consola:: $proyecto no válido :: causado por :: Parámetro no reconocido para $filtro: límite

La ironía de esto es que la documentación nos dice que existe y se puede usar.

este es mi codigo

 const docWorker = await _worker.aggregate([ { $project: { credencial: { $cond: { if: { $eq: [{ $size: "$identificacionObra" }, 0], }, then: false, else: { $cond: { if: { $gte: [ { $size: { $filter: { input: "$identificacionObra", cond: { $eq: ["$$credencial.estado", true], }, as: "credencial", limit: 1, <--------- the limit parameter does not work }, }, }, 1, ], }, then: true, else: false, }, }, }, }, }, }, { $match: _match }, { $sort: _sort }, { $facet: { paginatedResults: [ { $skip: req.query.page * req.query.limit - req.query.limit }, { $limit: parseInt(req.query.limit) }, ], totalCount: [ { $count: "count", }, ], }, }, ]);

Por favor ayúdenme, ¿qué hice mal?

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!