Why UpdateLastError.upsertedId is Option[Any]

15 views
Skip to first unread message

Michał Sitko

unread,
Oct 20, 2015, 9:47:12 AM10/20/15
to ReactiveMongo - http://reactivemongo.org
Is there any specific reason for `UpdateLastError.upsertedId` to be `Option[Any]`? Shouldn't it be `Option[BSONObjectID]`?

Cédric Chantepie

unread,
Oct 21, 2015, 3:12:30 AM10/21/15
to ReactiveMongo - http://reactivemongo.org
Hi, I guess you are using a previous release. In 0.11, UpdateWriteResult has an Upserted data, which itself has an id property (BSONValue not Any).
Reply all
Reply to author
Forward
0 new messages