I moved from mongo to mongodb extension when I upgraded to PHP7. The only thing I cannot figure out is to update a doc by id. Mongo used to have the MongoId Class to parse the id from string but I can't find any equivalent for Mongodb.
This is where I'm at and which doesn't work
$collection->updateOne(['_id' => '567eba6ea0b67b21dc004687'], ['$set' => ['some_property' => 'some_value']]);