From e826130a7a3c5ae3aa4f25223e2cb5e2ab0d97a7 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Mon, 30 Dec 2019 16:56:29 +0800 Subject: [PATCH] =?UTF-8?q?Update=20MongoDB=5F=E8=81=9A=E5=90=88.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/MongoDB_聚合.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/notes/MongoDB_聚合.md b/notes/MongoDB_聚合.md index 44ec6ef..7583318 100644 --- a/notes/MongoDB_聚合.md +++ b/notes/MongoDB_聚合.md @@ -211,9 +211,7 @@ $unwind 将文档按照数组中的每一个元素进行拆分,类似于大多 ``` + **path**:用于展开的数组字段; - + **includeArrayIndex**:用于显示对应元素在原数组的位置信息; - + **preserveNullAndEmptyArrays**:如果用于展开的字段值为 null 或空数组时,则对应的文档不会被输出到下一阶段。如果想要输出到下一阶段则需要将该属性设置为 true。示例语句如下: ```shell @@ -623,7 +621,6 @@ db.titles.distinct("title") + 官方文档:[Aggregation](https://docs.mongodb.com/manual/aggregation/)、[Map-Reduce](https://docs.mongodb.com/manual/core/map-reduce/) + 所有聚合管道总览:https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/ - + 聚合管道中所有可选操作符:https://docs.mongodb.com/manual/reference/operator/aggregation/