![]() ![]() Your Azure Cosmos DB account and databases should now be visible within MongoDB Compass. Remove the value automatically populated in the Replica Set Name field to ensure that is left blank.Ĭlick on Connect at the bottom of the page. Upon clicking Yes in the above step, your details from the connection string will be automatically populated. If Compass does not automatically detect your connection string, you can still manually paste it into the application. Click on Yes as shown in the screenshot below. Open Compass on your desktop/machine and click on Connect and then Connect to.Ĭompass will automatically detect a connection string in the clipboard, and will prompt to ask whether you wish to use that to connect. Clicking this button will copy your entire connection string to your clipboard. Retrieve the connection information for your Azure Cosmos DB account configured with Azure Cosmos DB's API MongoDB using the instructions here.Ĭlick on the button that says Copy to clipboard next to your Primary/Secondary connection string in Azure Cosmos DB. To connect your Azure Cosmos DB account to Compass, you can follow the below steps: Have your Azure Cosmos DB connection string informationĬonnect to Azure Cosmos DB's API for MongoDB.To connect to your Azure Cosmos DB account using MongoDB Compass, you must: You can quickly create and query document, key/value, and graph databases, all of which benefit from the global distribution and horizontal scale capabilities at the core of Azure Cosmos DB. It is commonly used to visualize your data, run ad-hoc queries, along with managing your data.Īzure Cosmos DB is Microsoft's globally distributed multi-model database service. For those of you unfamiliar, Compass is a GUI for MongoDB. We use the Azure Cosmos DB's API for MongoDB for this walk-through. What's more, you get to see the data types associated with each field and navigate the visual representation with ease.Īt the same time, MongoDB Compass also enables the user to create custom query commands by using the mouse to highlight the sections or areas of interest: the app generates the code automatically, and you get to see the results in real time.This tutorial demonstrates how to use MongoDB Compass when storing and/or managing data in Azure Cosmos DB. To sum up, MongoDB Compass scans the databases content and enables the user to view the collection's schema in a graphical manner. ![]() Powerful MongoDB schema visualization solution that includes query capabilities Note that you can create queries using multiple fields and that MongoDB Compass offers you the possibility to run the command with a simple press of a button: the results will be displayed in the MongoDB Compass main window almost instantly. The best part is that you can use all the MongoDB Compass data representations to swiftly develop queries: just click on the information that interests you and the application will automatically generate the command using the appropriate language. Build queries for your MongoDB database without relying on the query language At the same time, you get to view all the field names contained in the records together with the data type.Īs a result, you can use MongoDB Compass to visualize the schema of your database, and quickly identify possible errors, the frequency of particular fields in the database documents, and the distribution of data per each field depending on type. Just select one of the included databases and MongoDB Compass will display the number of included documents, their total and average size, together with index information. Once you establish a connection, MongoDB Compass will launch a separate window where you get to see details about your MongoDB installation, and the collections available on the server. Analyze MongoDB collections and documents in a user-friendly graphical user interface This way, you can work with multiple databases at the same time while avoiding going through the configuration procedure multiple times. ![]() What’s more, MongoDB Compass offers you the option to add the connection details to the favorite list and give it an easily recognizable name. In addition, you can also use different types of authentication methods, such as username and password, Kerberos, or LDAP. Right off the bat, MongoDB Compass requires the hostname and port for the MongoDB server you want to access. ![]() Connect to MongoDB databases with or without providing authentication details MongoDB Compass is a visualization tool that connects to your MongoDB server and offers you the possibility to analyze the included information and create queries without having to work with the command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |