Changed bsonType to bsontype