mongoproxy icon indicating copy to clipboard operation
mongoproxy copied to clipboard

Hack used to hide fields in responses

Open dmliao opened this issue 9 years ago • 0 comments

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).

dmliao avatar Jul 01 '15 15:07 dmliao