Robo 3T Download and use
Previously called Robomongo, the back was acquired, renamed Robo 3T.
Download Link: https://robomongo.org/download (requires FQ)
Installation steps omitted, next step ...
Graphical interface, connect by default, take a name on the line.
Successful connection, can be used happily, not always knock command, concise and convenient, a variety of display.
Software to the right can switch the display style, slowly toss.
Robo 3T Shell operation
Right-click the database to open the shell
Let's play with the useless syntax, the green button to run the command.
1. Bulk INSERT (default is no bulk operation, only for loop.) )
2, $type operator, based on the Bson type, retrieves the matching data type from the collection and returns the result.
Add some data first, then query it (the same interface, you need to select the line of execution, or you will always execute the first command.) )
3. Usage of limit and skip
Querying two records in a document
sorting Sort () method
Index Ensureindex () method
- Multiple field indexes:
db.student.ensureIndex({"name":1,"hobby":-1})
Polymerization aggregate ()
Only one method is used here, grouped and counted, and others can see the relevant usage and documentation.
Summary: Some of the basic usage commonly used in these, advanced usage can be studied slowly. To tell the truth this tool is very practical, there are some smart tips, do not have to a black box every day, haha. Then start the actual combat.
MongoDB GUI (Robo 3T) shell usage and operation