It would be nice to have ability to connect to MongoDB cluster with sharding configured.

https://docs.mongodb.com/manual/sharding/

The only way to use similar stuff is to make replicaSet and connect to one of nodes.