Find all except one in mongodb
<p>I want to skip one user particular by using <code>_id</code> and display all others users, I am trying below code its not working:</p>

<pre><code>db.user.find(
    { _id: { $nin: ["5848e9ecaec0f31372816a26"] } },
    { username: 1 }
).pretty()
</code></pre>