mongoproxy
mongoproxy copied to clipboard
Hack used to hide fields in responses
The helper struct functions by default export all of their fields when converted to BSON, but some commands (e.g. batch insert, batch update) require that some fields not exist. The method to handle this right now is pretty hacked together, in which invalid values of the field cause them to be not exported. (such as n being negative).