Sample Header Ad - 728x90

Is findOne() in mongoDB deprecated

5 votes
3 answers
7625 views
Is findOne() in **MongoDB** deprecated? I am asking this because when I use findOne() in *WebStorm* the IDE puts a line through findOne() and gives a message saying findOne() is deprecated and to find substitute. I looked in the MongoDB documentation to try and find an answer but it did not mention anything about findOne() being deprecated. If findOne() is deprecated what would be the best alternative to this method? If it is not deprecated does anyone know why WebStorm gives this warning? Any help with this is appreciated! Thanks!
Asked by Tim (153 rep)
May 23, 2016, 08:07 PM
Last activity: Dec 5, 2016, 06:24 PM