Searching Topics for intellishell
Lesson 7: Introducing IntelliShell
IntelliShell offers the simplicity of the mongo shell, but adds an assortment of features to make it easier to query a database and view the results. You can launch IntelliShell from the Studio 3T menu or through the Connection Tree. For example, you can launch IntelliShell from a database or collection node. IntelliShell opens as a separate tab, […]
Lesson 4, Exercise 1: Using IntelliShell to query single and multiple values in an array
In this exercise, you’ll use IntelliShell to create and run several queries that retrieve data from the customers collection. The queries will be based on values in the interests array. To build the queries in IntelliShell 1. Launch Studio 3T and connect to MongoDB Atlas. 2. In the Connection Tree, right-click the sales database node […]
Lesson 2, Exercise 1: Using IntelliShell to build and run find statements
In this exercise, you’ll use IntelliShell to create and run several find statements that retrieve data from the customers collection. To build and run the find statements 1. Launch Studio 3T and connect to MongoDB Atlas. 2. In the Connection Tree, right-click the sales database node and click Open IntelliShell. Studio 3T opens IntelliShell in its […]
Lesson 2, Exercise 3: Using Query Code and IntelliShell to modify and run a find statement
In this exercise, you’ll use IntelliShell to update and run the final find statement you created in the previous exercise, as it was generated on the Query Code tab. To build and run the find statement 1. On the customers collection tab, go to the Query Code tab and click on the Open in IntelliShell […]
Lesson 7, Exercise 2: Using IntelliShell’s auto-completion features to write queries
In this exercise, you will build two queries in IntelliShell. The first query changes the current database to BioData. The second query retrieves document data from the bios collection. To create the second query, you will use IntelliShell’s built-in auto-completion features. To create the queries 1. Return to the IntelliShell tab, position your cursor at the end of the command […]
Lesson 7, Exercise 3: Running queries in IntelliShell and viewing the results
In this exercise, you will execute the queries you created in the second exercise. As part of this process, you will use several IntelliShell features to run the queries and view the results in different formats. To run the queries and view the results 1. On the IntelliShell tab, position your cursor after the third […]
Lesson 7, Exercise 1: Using IntelliShell to load and run a script file
In this exercise, you will load and run the bios.js file. The file contains a set of commands that create a database named BioData and add a collection to the database named bios. The collection includes 10 documents that contain biographical information about 10 individuals, one document per individual. To load and run the script file 1. Launch Studio 3T […]
Lesson 5, Exercise 1: Using the $elemMatch operator to query embedded documents
In this exercise, you’ll use IntelliShell to add several documents to the customers collection. Each document includes an Array field that’s made up of several embedded documents. After you add the documents, you’ll use IntelliShell to run multiple queries based on values in the embedded documents. To run the queries in IntelliShell 1. Launch Studio […]
Lesson 5, Exercise 2: Using conditional operators to query embedded documents
In this exercise, you’ll use IntelliShell to query the documents you added in the previous exercise. As with that exercise, your statements will be based on the values in the embedded documents. In this exercise, however, you’ll also use conditional operators as part of the query search conditions. To run the queries in IntelliShell 1. […]
Exercise 1: Filtering the documents in the aggregation pipeline
In this exercise, you’ll launch IntelliShell and create an aggregate statement that includes only one stage. The stage is based on the $match aggregate operator, which lets you filter the documents in the pipeline so you’re working with only a subset of documents in later stages. In the exercises that follow this one, you’ll add […]