mongo query

Multi-query: db.getCollection ( 'c_qsl_data') find . ({ 'Name': where Qi Health, 'mobile': '15600000000' })
access to a given time period:. Db.getCollection ( 'c_qsl_data') find ( { 'createTime': {$ gte : 1564371915929, $ lte: 1566874974171}})
is not equal to: db.getCollection ( 'c_qsl_data') find (. { 'code': {$ ne: 0}})
exist: db.getCollection ( 'c_qsl_data') find. ( { 'name': {$ exists: true}})
access to a given field values: db.getCollection ( 'c_qsl_data') find ({ 'idCard': '110101199003079868'}., { ' _id ': true})
number of elements in the array of matches: db.getCollection (' c_qsl_data ') find (. {' name ': {' $ size ': 1}})
number of elements in the array is determined exceeds 500: db. getCollection ( 'c_qsl_data') Find ({ 'call_log.501': {$ EXISTS:}}. 1).. Sort ({ '_ ID':}. 1)
. db.getCollection ( 'c_qsl_data') Find ({ 'param.queryConditions.applyNo':{'$in':['613339916923633664','1205201908160002400','1205201908160002399']}})

Guess you like

Origin www.cnblogs.com/qsl17/p/11512293.html