
mongoDB
Irene-li
这个作者很懒,什么都没留下…
展开
-
MongoDB aggregate
聚合查询// aggregate里的各种查询可以组合使用// 聚合查询Entry.aggregate([ { // $match 筛选,和find查询条件一致 $match: { $or: [{'showcase.type': CONSTANT.contestType.STANDARD}], 'sho...原创 2018-09-03 10:50:06 · 1028 阅读 · 0 评论 -
Mongoose find
Mongodb findmodel: Document查询单个字段1. 未删除的Document.find({deleted: {$ne: true} 或者 deleted: false})2. 存在的DocumentDocument.find({title:{$exists:true})Document.find({title:{$nin:[null,undefined,...原创 2018-11-14 18:33:07 · 1122 阅读 · 0 评论