"MongoDB" The high query operation of MongoDB (ii)

Source: Internet
Author: User

In the last blog, there is three query condition to be described. In the blog, we'll continue to what we had leant in the last blog.

1 $mod

' $mod ' operation is able-make us-to-do simple mod operation, and is no need to use where sentence.

\

2. $ne, $in, $nin

' $ne ' means not equal. ' $in ' is same as key word ' in ' in relationship. $nin is opsitive to ' in '


3. $or and $nor

Durning the mutiple conditions, then result would be is return that it is only matches one condition among condition.

As for $noe, which are in contrast with $no, let's learn it from the following the picture.


4. $size

$size operation would query result whose size is equailvant to size of input.


5. $where



6. $type $type would find the data according the type of Bson field. For example:

The following picture is the type of Bson type.


"MongoDB" The high query operation of MongoDB (ii)

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.