79627861

Date: 2025-05-18 21:31:29
Score: 1
Natty:
Report link

try

if (filter._id) {
  filter._id = new ObjectId(filter._id)
}

before calling

collection.find(filter)

In json, _id stays a string.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: László Matuska