MongoDB GUI (Robo 3T) shell usage and operation

Source: Internet
Author: User
Tags bulk insert robomongo mongodb gui

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

    • The first {} puts a where condition, and a null representation returns all documents in the collection.
    • The second {} Specifies that those columns are displayed and not displayed (0 means that 1 is not displayed).
    • Query showing 2nd, 3 document data

      • The default parameter for the Skip () method is 0.
      • Skip and limit combine to achieve paging.

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.