MongoDB: db.collection.getShardVersion() method
db.collection.getShardVersion
The db.collection.getShardVersion() method is used to internal diagnostic method for shard cluster.
This method returns information regarding the state of data in a sharded cluster that is useful when diagnosing underlying issues with a sharded cluster.
Syntax:
db.collection.getShardVersion()
Retrieve the restaurants data from here
Previous:
db.collection. getShardDistribution() method
Next:
db.collection.group() method
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics