Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
3.11.0
-
None
Description
toBsonValueList casts Bson objects to BsonValue which errors when the actual value is eg. a Document.
MongoCollection<Document> collection = // ... |
|
|
Document existing = collection.findOneAndUpdate(
|
new Document("_id", 1), |
Collections.singletonList(
|
new Document("$set", new Document("title", "The Burning White")) |
),
|
new FindOneAndUpdateOptions().upsert(true)); |