Ask a Question

Ask a Question
Back to All

'findOne' Method

Hi, I can't find method "findOne" for collections. MongoDB documentation for this method
https://www.mongodb.com/docs/manual/reference/method/db.collection.findOne/#mongodb-method-db.collection.findOne
Or what is the best and optimized way to get one document?