For sharded collections, queries using :query:`$near` are not supported. You can instead use either the :dbcommand:`geoNear` command or the :pipeline:`$geoNear` aggregation stage.
For sharded collections, queries using :query:`$near` are not supported. You can instead use either the :dbcommand:`geoNear` command or the :pipeline:`$geoNear` aggregation stage.