title: How to only keep the data I want after retrieving data from mongodb
body: <pre><code>mydoc = mycollection_Users.find_one( {}, { &quot;Username&quot;: 0})
  </code></pre>
  <p>this is the code I wrote to get the password from MongoDB, when I put 0 in the search value it will give me all the values except Usernames' value.
  but I get the value like this</p>
  <pre><code>{'_id': ObjectId('618bc65e33c87d5cfbdd5a28'), 'Password': 'example'}
  </code></pre>
  <p>how can I only keep what the actual password is and remove everything else, the product should be just &quot;example&quot; and nothing else</p>
  <p>Any help will be great, thx</p>