The $geoNear video says that $near can’t be used with sharded collections, but the documentation says that it can since MongoDB 4.0. This ought to be reflected in the lecture notes.
Thanks for highlighting this!!
We are working on revamping the M121: The MongoDB Aggregation Course. However, we will ensure to get this quick fix up in the platform for our users.