db.collection.
getShardVersion
()¶mongo
Shell Method
This page documents the 本页记录了mongo
shell method, and does not refer to the MongoDB Node.js driver (or any other driver) method. mongo
shell方法,未提及MongoDB Node.js驱动程序(或任何其他驱动程序)方法。For corresponding MongoDB driver API, refer to your specific MongoDB driver documentation instead.有关相应的MongoDB驱动程序API,请参阅特定的MongoDB驱动程序文档。
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.仅供内部和诊断使用。