transformValue only handles strings and documents. The commitQuorum option being added in
GODRIVER-1582 supports strings and numbers. Instead of adding more special cases, we can leverage bson.MarshalValue, which will already handle all of the different numerical types. We should also ensure that all users of transformValue have integration tests to catch regressions.
- is depended on by
GODRIVER-1582 'CommitQuorum' option support for 'createIndexes’ command on MongoDB 4.4