'How Can i Read Just one item of a mongo DB collection With java
i have a mongodb collection "Users" , with three items Id , AboutMe and DisplayName / How can i read and display just one item of the three for example : the item AboutMe in java code.click here to see the collection In mongo db we can do it with this query db.users.find({},{"AboutMe":1,_id:0}).pretty() how can i execute this query in java . click here to see the result of the query
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
