fillBSON

Fills a BSON with the members from a struct. if ignoreDefaults is true, then values with the default value aren't added. this behavior is useful to toggle it on insertions but off for option or query parameters.

bool
fillBSON
(
Type
)
(,,
bool ignoreDefaults = true
)

Meta