Closed
Description
Hi, I'm trying to query for a field that takes ObjectId as value. I've tried the following but to no avail:
const ObjectID = require('mongodb').ObjectID
and then
return this.findByFields({album_id: new ObjectID('someidhere')})
Are ObjectIds supported in findByFields()? How should I pass them?
thanks!
Metadata
Metadata
Assignees
Labels
No labels