By Alvin Alexander. Last updated: June 6, 2016
Just a quick note today that MongoDB supports both null and undefined data types, and you can set them as shown here:
{ "a" : null } { "a" : undefined }
MongoDB also supports a boolean data type, which you can define like this:
{ "a" : boolean }