Mongo.getReadPrefTagSet()次の値を返します。 接続オブジェクトの現在の読み込み設定( read preference
Mongo())タグセット。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() 現在の読み込み設定(read preference)タグセットを返して出力するには、次の操作を使用します。
printjson(db.getMongo().getReadPrefTagSet());
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
- MongoDB Atlas はクラウドでの MongoDB 配置のための完全管理サービスです
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン