From fe4e3e9af26852a027b4d33a7a65497b8c4353be Mon Sep 17 00:00:00 2001 From: Allison Moore Date: Fri, 20 Oct 2017 14:27:16 -0400 Subject: [PATCH] DOCS-10924: emphasize what happens when the field doesn't exist for $type --- source/reference/operator/aggregation/type.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/reference/operator/aggregation/type.txt b/source/reference/operator/aggregation/type.txt index 276d90cd6cf..359752c7e4e 100644 --- a/source/reference/operator/aggregation/type.txt +++ b/source/reference/operator/aggregation/type.txt @@ -98,6 +98,9 @@ Available Types .. include:: /includes/fact-bson-types.rst +If the argument is a field that is missing in the input document, +:expression:`$type` returns the string ``"missing"``. + Example -------