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!
