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
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://www.w3resource.com/mongodb/shell-methods/collection/db-collection-getShardVersion.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics