
mongoDB
Irene-li
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MongoDB aggregate
聚合查询 // aggregate里的各种查询可以组合使用 // 聚合查询 Entry.aggregate([ { // $match 筛选,和find查询条件一致 $match: { $or: [{'showcase.type': CONSTANT.contestType.STANDARD}], 'sho...原创 2018-09-03 10:50:06 · 1037 阅读 · 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 · 1133 阅读 · 0 评论