mongodb / v3.6 / reference / reference-method-db.collection.getShardVersion.html

db.collection.getShardVersion()

db.collection. getShardVersion ( )

This method returns information regarding the state of data in a sharded cluster that is useful when diagnosing underlying issues with a sharded cluster.

For internal and diagnostic use only.