title: Yii2:- update record using update query for mongodb
body: <p>I am trying to make update query using Yii2 for mongodb. I make following query:</p>
  
  <pre><code>$collection = Yii::$app-&gt;mongodb-&gt;getCollection('usermaster');
         $arrUpdate = [ 
              'firstName' =&gt; $fname,
              'lastName' =&gt; $lname,
              'email' =&gt; $email,
              'is_visible' =&gt; $isvisibleUser,
              'phoneNumber' =&gt; $phone,
              'userName' =&gt; $uname,   
              ];
     $collection-&gt;update(['_id = 55a4957sd88423d10ea7c07d'],$arrUpdate); 
  </code></pre>
  
  <p>But it shows follwoing error in firebug.</p>
  
  <pre><code>"NetworkError: 500 Internal Server Error - http://localhost/yii2angularseedmaster/frontend/web/category/corporateupdate?corpUserid=55a4957sd88423d10ea7c07d"
  </code></pre>
  
  <p>My insert query works perfectly but update query does not works.</p>
  
  <p>Please tell me what is wrong in my query.</p>