Menu

#6 Empty Boolean Field Returning {} Instead of 0

open
nobody
None
5
2013-01-09
2007-06-26
No

Currently, a boolean field will return an empty sequence if not specifically given a value. I would like a boolean field to always return only either 1 or 0. The default behavior for a boolean value can be "if not 1 then 0."

Discussion


Log in to post a comment.

MongoDB Logo MongoDB