$geoNear vs $near

I have a question about these two operations. Do $geoNear in an aggregation query and the combination of $near and $geometry in a find query do the same thing?


$geoNear in the aggregation pipeline and $near in a query perform similar functions; as the documentation here tells you, you cannot combine a $near in a query in the aggregation pipeline with the $geoNear operation. I’m not sure why you might think $geometry was necessary to add the the $near to get results; so far as I can tell from some simple tests, the default behavior of $near is just fine.