diff --git a/source/reference/operators.txt b/source/reference/operators.txt index b80e136b117..97539207d69 100644 --- a/source/reference/operators.txt +++ b/source/reference/operators.txt @@ -479,7 +479,16 @@ Element ``MinKey`` and ``MaxKey`` compare less than and greater than all other possible :term:`BSON` element values, respectively, and exist - primarily for internal use. + primarily for internal use. + + .. note:: + + Searching for ``MaxKey`` by type will work as expected, however + to search for ``MinKey`` you must use -1, for example: + + .. code-block:: javascript + + db.collection.find( { field: { $type: -1 } } ); .. note::