Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/reference/operator/aggregation/project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Definition
.. versionchanged:: 3.6

MongoDB 3.6 adds the variable :variable:`REMOVE`. If the
the expression evaluates to ``$$REMOVE``, the field is
the expression evaluates to ``$REMOVE``, the field is
excluded in the output. For details, see :ref:`remove-var`.

* - ``<field>:<0 or false>``
Expand Down Expand Up @@ -373,7 +373,7 @@ variable to excludes the ``author.middle`` field only if it equals ``""``:
"author.middle": {
$cond: {
if: { $eq: [ "", "$author.middle" ] },
then: "$$REMOVE",
then: "$REMOVE",
else: "$author.middle"
}
}
Expand Down