阿里云
>
mongodb
>
mongodb数组查询问题
mongodb数组查询问题
mongodb
内嵌
数组查询问题
:如何限定返回与条件匹配的数组
dt":ISODate("2015-06-26T13:20:48.449+08:00"),"is_attention":true }]}
查询
条件为
db
.getCollection('web_mem_favorites').findOne({ '_id':NumberLong(1181675746),'favorite_shards.sid':{ '$in':[NumberLong(577),NumberLong(578)]} ...
mongodb
文档
数组查询
的一个
问题
对多群发消息,文档结构如下:{"from_uid":10000,"to_uid":[{"user_id":100002,"is_read":1,...貌似
查询
条件里的"to_uid.user_id""to_uid.is_del"是或的关系?
db
.notice.find({"to_uid.user_id":100002,"to_uid.is_del":0,"create_time":8})
1
mongodb问题数组查询相关内容
.
mongodb查询问题
.
mongodb数据问题
.
mongodbc++问题
.
连接mongodb问题
.
mongodb使用问题
.
mongodb数据库问题
.
mongodb问题报错
.
mongodb性能问题
.
mongodb启动问题
.
mongodb安装问题
.
mongodb文档问题
.
mongodb什么问题
.
mongodb服务问题
.
存储mongodb问题
.
mongodb操作问题
您可能感兴趣
.
mongodb安装
.
mongodb学习
.
mongodb操作
.
mongodb查询
.
mongodb是什么
.
mongodb配置
.
mongodb报错
.
mongodb服务
{"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],"search_count":[{"count_phone":6,"count":6}]},"card":[{"des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","link1":"https://www.aliyun.com/product/mongodb","link":"https://www.aliyun.com/product/mongodb","icon":"https://img.alicdn.com/tfs/TB1xhK3RVXXXXXwXpXXXXXXXXXX-114-114.png","btn2":"了解价格","tip":"阿里云MongoDB4.0全新升级,全新事务支持,打破数据库边界,独家数据多活能力,
观看发布会
最新产品和实时动态重磅发布
立即查看
","btn1":"立即购买","link2":"https://www.aliyun.com/price/product?spm=5176.7937264.668853.btn3.76258379ziCwfW#/mongodb/detail","title":"云数据库 MongoDB 版"}],"search":[{"txt":"云数据库MySQL","link":"https://www.aliyun.com/product/rds/mysql?spm=5176.8142029.388261.348.54216d3edqlhkH"},{"txt":"云数据库Redis","link":"https://www.aliyun.com/product/kvstore?spm=5176.8142029.388261.350.54216d3edqlhkH"},{"txt":"云数据库HBase","link":"https://www.aliyun.com/product/hbase?spm=5176.8142029.388261.357.54216d3edqlhkH"},{"txt":"云数据库POLARDB","link":"https://www.aliyun.com/product/polardb?spm=5176.8142029.388261.352.54216d3edqlhkH"},{"txt":"云数据库MongoDB4.0","link":"https://promotion.aliyun.com/ntms/act/mongodb-newversion-live.html"},{"txt":"云数据库 MongoDB 4.0 详解","link":"https://yq.aliyun.com/articles/671038"}],"countinfo":{"search":{"length_pc":0,"length":0},"card":{"length_pc":0,"length":0}},"simplifiedDisplay":"newEdition","newCard":[{"link":"https://img.alicdn.com/tfs/TB1KM.qIeH2gK0jSZJnXXaT1FXa-1740-328.png","icon":"mongodb","contentLink":"https://www.aliyun.com/product/mongodb","title":"云数据库 MongoDB 版","des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","btn1":"产品详情","link1":"https://www.aliyun.com/product/mongodb","btn2":"管理控制台","link2":"https://mongodb.console.aliyun.com/replicate/cn-hangzhou/instances","btn3":"在线咨询","link3":"https://www.aliyun.com/core/online-consult?from=yAAzuk58kF","infoGroup":[{"infoName":"最新活动","infoContent":{"firstContentName":"MongoDB 9.9元/3月","firstContentLink":"https://common-buy.aliyun.com/?commodityCode=mongodb_serverless_public_cn&request=%7B%22ord_time%22:%223:Month%22,%22order_num%22:1,%22region%22:%22cn-hangzhou%22,%22zone_id%22:%22cn-hangzhou-b%22,%22spec_class%22:100,%22storage%22:5%7D&activityId=1510520412194083","lastContentName":"数据库专场优惠","lastContentLink":"https://www.aliyun.com/database/dbfirstbuy"}},{"infoName":"快速入门","infoContent":{"firstContentLink":"https://help.aliyun.com/product/26556.html","firstContentName":"帮助文档","lastContentLink":"https://help.aliyun.com/document_detail/54260.html","lastContentName":"快速入门"}},{"infoName":"最佳实践","infoContent":{"firstContentLink":"https://help.aliyun.com/document_detail/85928.html","firstContentName":"与自建数据库对比优势","lastContentLink":"https://www.aliyun.com/database/case","lastContentName":"数据库客户案例合集"}},{"infoName":"产品推荐","infoContent":{"firstContentName":"数据管理DMS","firstContentLink":"https://www.aliyun.com/product/dms","lastContentName":"数据库备份DBS","lastContentLink":"https://www.aliyun.com/product/dbs"}}],"ifIcon":"icon"}]}
{"$env":{"JSON":{}},"$page":{"env":"production"},"$context":{"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],"search_count":[{"count_phone":6,"count":6}]},"card":[{"des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","link1":"https://www.aliyun.com/product/mongodb","link":"https://www.aliyun.com/product/mongodb","icon":"https://img.alicdn.com/tfs/TB1xhK3RVXXXXXwXpXXXXXXXXXX-114-114.png","btn2":"了解价格","tip":"阿里云MongoDB4.0全新升级,全新事务支持,打破数据库边界,独家数据多活能力,
观看发布会
最新产品和实时动态重磅发布
立即查看
","btn1":"立即购买","link2":"https://www.aliyun.com/price/product?spm=5176.7937264.668853.btn3.76258379ziCwfW#/mongodb/detail","title":"云数据库 MongoDB 版"}],"search":[{"txt":"云数据库MySQL","link":"https://www.aliyun.com/product/rds/mysql?spm=5176.8142029.388261.348.54216d3edqlhkH"},{"txt":"云数据库Redis","link":"https://www.aliyun.com/product/kvstore?spm=5176.8142029.388261.350.54216d3edqlhkH"},{"txt":"云数据库HBase","link":"https://www.aliyun.com/product/hbase?spm=5176.8142029.388261.357.54216d3edqlhkH"},{"txt":"云数据库POLARDB","link":"https://www.aliyun.com/product/polardb?spm=5176.8142029.388261.352.54216d3edqlhkH"},{"txt":"云数据库MongoDB4.0","link":"https://promotion.aliyun.com/ntms/act/mongodb-newversion-live.html"},{"txt":"云数据库 MongoDB 4.0 详解","link":"https://yq.aliyun.com/articles/671038"}],"countinfo":{"search":{"length_pc":0,"length":0},"card":{"length_pc":0,"length":0}},"simplifiedDisplay":"newEdition","newCard":[{"link":"https://img.alicdn.com/tfs/TB1KM.qIeH2gK0jSZJnXXaT1FXa-1740-328.png","icon":"mongodb","contentLink":"https://www.aliyun.com/product/mongodb","title":"云数据库 MongoDB 版","des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","btn1":"产品详情","link1":"https://www.aliyun.com/product/mongodb","btn2":"管理控制台","link2":"https://mongodb.console.aliyun.com/replicate/cn-hangzhou/instances","btn3":"在线咨询","link3":"https://www.aliyun.com/core/online-consult?from=yAAzuk58kF","infoGroup":[{"infoName":"最新活动","infoContent":{"firstContentName":"MongoDB 9.9元/3月","firstContentLink":"https://common-buy.aliyun.com/?commodityCode=mongodb_serverless_public_cn&request=%7B%22ord_time%22:%223:Month%22,%22order_num%22:1,%22region%22:%22cn-hangzhou%22,%22zone_id%22:%22cn-hangzhou-b%22,%22spec_class%22:100,%22storage%22:5%7D&activityId=1510520412194083","lastContentName":"数据库专场优惠","lastContentLink":"https://www.aliyun.com/database/dbfirstbuy"}},{"infoName":"快速入门","infoContent":{"firstContentLink":"https://help.aliyun.com/product/26556.html","firstContentName":"帮助文档","lastContentLink":"https://help.aliyun.com/document_detail/54260.html","lastContentName":"快速入门"}},{"infoName":"最佳实践","infoContent":{"firstContentLink":"https://help.aliyun.com/document_detail/85928.html","firstContentName":"与自建数据库对比优势","lastContentLink":"https://www.aliyun.com/database/case","lastContentName":"数据库客户案例合集"}},{"infoName":"产品推荐","infoContent":{"firstContentName":"数据管理DMS","firstContentLink":"https://www.aliyun.com/product/dms","lastContentName":"数据库备份DBS","lastContentLink":"https://www.aliyun.com/product/dbs"}}],"ifIcon":"icon"}]}}
云数据库 MongoDB 版
支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。
产品详情
管理控制台
在线咨询
最新活动
MongoDB 9.9元/3月
数据库专场优惠
快速入门
帮助文档
快速入门
最佳实践
与自建数据库对比优势
数据库客户案例合集
产品推荐
数据管理DMS
数据库备份DBS
{"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],"search_count":[{"count_phone":6,"count":6}]},"card":[{"des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","link1":"https://www.aliyun.com/product/mongodb","link":"https://www.aliyun.com/product/mongodb","icon":"https://img.alicdn.com/tfs/TB1xhK3RVXXXXXwXpXXXXXXXXXX-114-114.png","btn2":"了解价格","tip":"阿里云MongoDB4.0全新升级,全新事务支持,打破数据库边界,独家数据多活能力,
观看发布会
最新产品和实时动态重磅发布
立即查看
","btn1":"立即购买","link2":"https://www.aliyun.com/price/product?spm=5176.7937264.668853.btn3.76258379ziCwfW#/mongodb/detail","title":"云数据库 MongoDB 版"}],"search":[{"txt":"云数据库MySQL","link":"https://www.aliyun.com/product/rds/mysql?spm=5176.8142029.388261.348.54216d3edqlhkH"},{"txt":"云数据库Redis","link":"https://www.aliyun.com/product/kvstore?spm=5176.8142029.388261.350.54216d3edqlhkH"},{"txt":"云数据库HBase","link":"https://www.aliyun.com/product/hbase?spm=5176.8142029.388261.357.54216d3edqlhkH"},{"txt":"云数据库POLARDB","link":"https://www.aliyun.com/product/polardb?spm=5176.8142029.388261.352.54216d3edqlhkH"},{"txt":"云数据库MongoDB4.0","link":"https://promotion.aliyun.com/ntms/act/mongodb-newversion-live.html"},{"txt":"云数据库 MongoDB 4.0 详解","link":"https://yq.aliyun.com/articles/671038"}],"countinfo":{"search":{"length_pc":0,"length":0},"card":{"length_pc":0,"length":0}},"simplifiedDisplay":"newEdition","newCard":[{"link":"https://img.alicdn.com/tfs/TB1KM.qIeH2gK0jSZJnXXaT1FXa-1740-328.png","icon":"mongodb","contentLink":"https://www.aliyun.com/product/mongodb","title":"云数据库 MongoDB 版","des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","btn1":"产品详情","link1":"https://www.aliyun.com/product/mongodb","btn2":"管理控制台","link2":"https://mongodb.console.aliyun.com/replicate/cn-hangzhou/instances","btn3":"在线咨询","link3":"https://www.aliyun.com/core/online-consult?from=yAAzuk58kF","infoGroup":[{"infoName":"最新活动","infoContent":{"firstContentName":"MongoDB 9.9元/3月","firstContentLink":"https://common-buy.aliyun.com/?commodityCode=mongodb_serverless_public_cn&request=%7B%22ord_time%22:%223:Month%22,%22order_num%22:1,%22region%22:%22cn-hangzhou%22,%22zone_id%22:%22cn-hangzhou-b%22,%22spec_class%22:100,%22storage%22:5%7D&activityId=1510520412194083","lastContentName":"数据库专场优惠","lastContentLink":"https://www.aliyun.com/database/dbfirstbuy"}},{"infoName":"快速入门","infoContent":{"firstContentLink":"https://help.aliyun.com/product/26556.html","firstContentName":"帮助文档","lastContentLink":"https://help.aliyun.com/document_detail/54260.html","lastContentName":"快速入门"}},{"infoName":"最佳实践","infoContent":{"firstContentLink":"https://help.aliyun.com/document_detail/85928.html","firstContentName":"与自建数据库对比优势","lastContentLink":"https://www.aliyun.com/database/case","lastContentName":"数据库客户案例合集"}},{"infoName":"产品推荐","infoContent":{"firstContentName":"数据管理DMS","firstContentLink":"https://www.aliyun.com/product/dms","lastContentName":"数据库备份DBS","lastContentLink":"https://www.aliyun.com/product/dbs"}}],"ifIcon":"icon"}]}
{"$env":{"JSON":{}},"$page":{"env":"production"},"$context":{"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],"search_count":[{"count_phone":6,"count":6}]},"card":[{"des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","link1":"https://www.aliyun.com/product/mongodb","link":"https://www.aliyun.com/product/mongodb","icon":"https://img.alicdn.com/tfs/TB1xhK3RVXXXXXwXpXXXXXXXXXX-114-114.png","btn2":"了解价格","tip":"阿里云MongoDB4.0全新升级,全新事务支持,打破数据库边界,独家数据多活能力,
观看发布会
最新产品和实时动态重磅发布
立即查看
","btn1":"立即购买","link2":"https://www.aliyun.com/price/product?spm=5176.7937264.668853.btn3.76258379ziCwfW#/mongodb/detail","title":"云数据库 MongoDB 版"}],"search":[{"txt":"云数据库MySQL","link":"https://www.aliyun.com/product/rds/mysql?spm=5176.8142029.388261.348.54216d3edqlhkH"},{"txt":"云数据库Redis","link":"https://www.aliyun.com/product/kvstore?spm=5176.8142029.388261.350.54216d3edqlhkH"},{"txt":"云数据库HBase","link":"https://www.aliyun.com/product/hbase?spm=5176.8142029.388261.357.54216d3edqlhkH"},{"txt":"云数据库POLARDB","link":"https://www.aliyun.com/product/polardb?spm=5176.8142029.388261.352.54216d3edqlhkH"},{"txt":"云数据库MongoDB4.0","link":"https://promotion.aliyun.com/ntms/act/mongodb-newversion-live.html"},{"txt":"云数据库 MongoDB 4.0 详解","link":"https://yq.aliyun.com/articles/671038"}],"countinfo":{"search":{"length_pc":0,"length":0},"card":{"length_pc":0,"length":0}},"simplifiedDisplay":"newEdition","newCard":[{"link":"https://img.alicdn.com/tfs/TB1KM.qIeH2gK0jSZJnXXaT1FXa-1740-328.png","icon":"mongodb","contentLink":"https://www.aliyun.com/product/mongodb","title":"云数据库 MongoDB 版","des":"支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。","btn1":"产品详情","link1":"https://www.aliyun.com/product/mongodb","btn2":"管理控制台","link2":"https://mongodb.console.aliyun.com/replicate/cn-hangzhou/instances","btn3":"在线咨询","link3":"https://www.aliyun.com/core/online-consult?from=yAAzuk58kF","infoGroup":[{"infoName":"最新活动","infoContent":{"firstContentName":"MongoDB 9.9元/3月","firstContentLink":"https://common-buy.aliyun.com/?commodityCode=mongodb_serverless_public_cn&request=%7B%22ord_time%22:%223:Month%22,%22order_num%22:1,%22region%22:%22cn-hangzhou%22,%22zone_id%22:%22cn-hangzhou-b%22,%22spec_class%22:100,%22storage%22:5%7D&activityId=1510520412194083","lastContentName":"数据库专场优惠","lastContentLink":"https://www.aliyun.com/database/dbfirstbuy"}},{"infoName":"快速入门","infoContent":{"firstContentLink":"https://help.aliyun.com/product/26556.html","firstContentName":"帮助文档","lastContentLink":"https://help.aliyun.com/document_detail/54260.html","lastContentName":"快速入门"}},{"infoName":"最佳实践","infoContent":{"firstContentLink":"https://help.aliyun.com/document_detail/85928.html","firstContentName":"与自建数据库对比优势","lastContentLink":"https://www.aliyun.com/database/case","lastContentName":"数据库客户案例合集"}},{"infoName":"产品推荐","infoContent":{"firstContentName":"数据管理DMS","firstContentLink":"https://www.aliyun.com/product/dms","lastContentName":"数据库备份DBS","lastContentLink":"https://www.aliyun.com/product/dbs"}}],"ifIcon":"icon"}]}}
云数据库 MongoDB 版
支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。
产品详情
管理控制台
在线咨询
最新活动
MongoDB 9.9元/3月
数据库专场优惠
快速入门
帮助文档
快速入门
最佳实践
与自建数据库对比优势
数据库客户案例合集
产品推荐
数据管理DMS
数据库备份DBS