Fastify MongoDB connection plugin
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
wpbjiuy opened this issue 4 years ago · comments
So query '_id' like this
I have to solve collection.findOne({ _id: fastify.mongo.ObjectId(id) })
collection.findOne({ _id: fastify.mongo.ObjectId(id) })