How can I use $inc operator for update document? In documentation I didn't find solution.
$this->mongo->selectCollection("news")->update( array('_id' => $id), array('$inc' => array( 'views' => 1 )) );