首页 > 代码库 > 【MongoDB】The high query operation of MongoDB(二)
【MongoDB】The high query operation of MongoDB(二)
In the last blog, there are three query condition to be described. In the blog, we will continue to what we have leant in the last blog.
1 $mod
‘$mod‘ operation is able to make us to do simple mod operation, but 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 will be return that it only matches one condition among condition.
as for $noe, which is in contrast with $no, let‘s learn it from the following the picture.
4. $size
$size operation will query result whose size is equailvant to size of input.
5. $where
6. $type
$type will 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(二)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。