w3resource
MongoDB Tutorial

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



New Content: Composer: Dependency manager for PHP, R Programming