title: How to remove sub key in mongodb using laravel
body: <p>I'm using jenssegers mongodb package.</p>
  
  <p>This is my collections</p>
  
  <pre><code>DB::connection('mongodb')-&gt;collection('users')-&gt;insertGetId(array('name' =&gt; 'John Doe', 'users' =&gt; [
              [
                  'id' =&gt; 100,
                  'wallet'=&gt;20.20
              ],
              [
                  'id' =&gt; 101,
                  'wallet'=&gt;10.66
              ]
          ]));
  </code></pre>
  
  <p>I'm trying to delete particular <code>wallet</code> record. following is the code</p>
  
  <pre><code>DB::connection('mongodb')-&gt;collection('users')-&gt;where('name', 'John Doe')-&gt;where('users.id',100)-&gt;unset('users.wallet');
  </code></pre>
  
  <p>But its not working as expected. How can I achieve this?</p>