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
16 changes: 16 additions & 0 deletions source/faq/developers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,22 @@ Different query operators treat ``null`` values differently:

{ "_id" : 2 }

Note that the value of a field may also be ``undefined``, which is different from ``null``
(though the shell renders them both as ``null``).

- You can find ``undefined`` values by BSON type:

.. code-block:: javascript

db.test.find( { cancelDate : { $type : 6 } } )

- Alternatively, you can find ``undefined`` values using ``$in``:

.. code-block:: javascript

db.test.find( { cancelDate : { $in : [ undefined ] } } )


.. seealso:: The reference documentation for the :operator:`$type` and
:operator:`$exists` operators.

Expand Down