Open dingdong-io opened 5 years ago
The readme says:
IMPORTANT NOTE: Please don't submit issues for questions regarding your code. Only actual bugs or feature requests will be answered, all others will be closed without comment. Also, please follow the bug reporting guidelines and check the change log before submitting an already fixed bug :)
Please close your issue as the author does not answer questions here. You might try stackoverflow.
use findOne, https://github.com/louischatriot/nedb/wiki/Finding-documents, check out this document
demo:
I just want to get data:
{name:'James',goodAt:"basketball"}
, but these two method all print[{"user":{"user1":{"name":"James","goodAt":"basketball"},"user2":{"name":"Curry","goodAt":"basketball"}},"_id":"xxx"}]
.If it is a big database,I just want to get one user,not return me all user,how can I do?
I feel afraid when I try
db.find
function, it always return me the outer big data(layer 1), if it's multi layer design, it will be disaster.