ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs Menu

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 のバージョン

項目一覧