NoSQL learning path (5): query operator (QueryOperators). 1st

Source: Internet
Author: User
The QueryOperators operator allows us to write complex query conditions, making the process more flexible. The field word used in the official document, which is the meaning of the field in RDBMS, but MongoDB is used as the document database, and the BSON format is used as the data storage format. Field corresponds to the key. Here I will translate it into a field instead of a key. If

Query Operators allows us to write complex Query conditions, making the process more flexible. The field word used in the official document, which is the meaning of the field in RDBMS, but MongoDB is used as the document database, and the BSON format is used as the data storage format. Field corresponds to the key. Here I will translate it into a field instead of a key. If

Query Operators allows us to write complex Query conditions, making the process more flexible.

The word "field" used in the official documents indicates the field in RDBMS, but MongoDB is used as the document database, the U.S. server, and the BSON format used as the data storage format. Field corresponds to the key, U.S. space, and Hong Kong server. I will translate it into "field" instead of "key" here ". If any, please point out.

Demo data:

We will perform the following operations. Insert three pieces of data to the Collection inventory first. The content of this document is as follows:

{"Name": "t1", "amount": 16, "tags": ["school", "book", "bag", "headphone ", "appliances"]}
{"Name": "t2", "amount": 50, "tags": ["appliances", "school", "book"]}
{"Name": "t3", "amount": 58, "tags": ["bag", "school", "book"]}

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.