public function byId($id)
{
if ($id instanceof \MongoId) {
$this->expression->where('_id', $id);
} else {
try {
$this->expression->where('_id', new \MongoId($id));
} catch (\MongoException $e) {
$this->expression->where('_id', $id);
}
}
return $this;
}