GODRIVER-4186ClosedFixed

Docs: Reinforce that input to UpdateByID is a filter

h3. *Context* Collection.UpdateByID builds the filter {_id: id} from its id argument without changing it. If id is a document containing query operators, for example {$gt: MinKey}, the server evaluates it as a query instead of matching it as a literal _id. This is clearly documented behavior for [collection.UpdateByID|https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/mongo#Collection.UpdateByID]: {quote} This is equivalent to running UpdateOne(ctx, bson.D{{"_id", id}}, update, opts...)

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
2.10.0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
priorityquick-win