AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

Mongo.getReadPrefTagSet()(mongoshメソッド)

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

このページを評価

項目一覧