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...)