Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
4.3 Required
-
Fully Compatible
-
ALL
-
Dev Tools 2019-06-17
Description
appendUndefined(), for example, returns nothing.
They all need to return a reference to *this to be used in fluent builder expressions, which BSONObjBuilder is designed to support.
BSONObj obj = BSONObjBuilder()
|
.append("a", 123)
|
.appendUndefined("b") // fail here
|
.obj();
|
This fails because appendUndefined isn't following the convention.