推定所要時間: 15 分
This part of the tutorial will walk you through connecting to your federated database instance using the MongoDB Shell, mongosh.
前提条件
チュートリアルのこの部分を完了するには、以下を完了している必要があります。
部分1 : フェデレーティッドデータベースインスタンスの配置
手順
Atlasで、プロジェクトのフェデレーティッドデータベースインスタンスにGoします。
まだ表示されていない場合は、プロジェクトを含む組織をナビゲーション バーの Organizations メニューで選択します。
まだ表示されていない場合は、ナビゲーション バーの Projects メニューからプロジェクトを選択します。
サイドバーで、 Services見出しの下のData Federationをクリックします。
Data Federationページが表示されます。
注意
フェデレーティッドデータベースインスタンスへの接続ではいつでも 1 人のユーザーだけが認証できます。 ユーザーが認証を行い、 db.auth()コマンドを実行すると、Data Federation は前のユーザーの権限を新しいユーザーの権限に置き換えます。
The connectionStatus command shows only the newly authenticated user in the authenticatedUsers output field.
次のステップ
Now that you're connected to your federated database instance using mongosh, proceed to Run Queries Against Your federated database instance.