Skip to content

Commit 126c4cc

Browse files
committed
DOCS-10924: emphasize what happens when the field doesn't exist for $type
1 parent 87618bd commit 126c4cc

File tree

1 file changed

+3
-0
lines changed
  • source/reference/operator/aggregation

1 file changed

+3
-0
lines changed

source/reference/operator/aggregation/type.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ Available Types
9898

9999
.. include:: /includes/fact-bson-types.rst
100100

101+
If the argument is a field that is missing in the input document,
102+
:expression:`$type` returns the string ``"missing"``.
103+
101104
Example
102105
-------
103106

0 commit comments

Comments
 (0)