mongo嵌套查询

db.getCollection('TradeBookingRepresentation').find({uitid:'168282:20190214010009224', tradeVersion:{major:2019021900, minor:904, revision:0}}).sort({_id:-1})
db.getCollection('TradeBookingRepresentation').find({uitid:'168282:20190214010009224', "tradeVersion.major":2019021900}).sort({_id:-1})

 

 

https://blog.csdn.net/qq_24745557/article/details/81740909

https://www.jianshu.com/p/bc557ec82f60

https://www.jianshu.com/p/b28a73ba9a16

posted @ 2019-03-07 15:48  tonggc1668  阅读(613)  评论(0编辑  收藏  举报