We could probably use the BSONObj::addFields method which acts like a merge. So, serialize coefficients into a BSONObj, merge and then deserialize and return.
- is related to
-
SERVER-69447 Add a query knob to control version of Cost Model coefficients
- Closed