Mongo.getReadPrefTagSet()
項目一覧
Mongo.getReadPrefTagSet()
次の値を返します。 The current 読み込み設定 (read preference) tag set for the Mongo()
connection object.See 読み込み設定 (read preference) for an introduction to read preferences and tag sets in MongoDB. Use
getReadPrefTagSet()
to return the current read preference tag set, as in the following example:db.getMongo().getReadPrefTagSet() Use the following operation to return and print the current read preference tag set:
printjson(db.getMongo().getReadPrefTagSet());
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
MongoDB Atlas はクラウドでの MongoDB 配置のためのフルマネージド サービスです
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン