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.
See Implementation
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.