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