mongodb/docs — pull request #927 by jstell (2013-04-26 20:29:49+00:00)
Title: Document BSON type 6 as 'undefined'

E.g.
> db.testcol.insert({v:undefined})
> db.testcol.findOne()
{ "_id" : ObjectId("517ae3259c3c002bf65b97fb"), "v" : null }
> db.testcol.count({v:null})
0
> typeof(db.testcol.findOne().v)
object
> db.testcol.count({v:{$type:6}})
1
> db.testcol.count({v:{$in:[undefined]}})
1