Joined December 2013
·
Posted to
Querying sub-documents and sub-sub-documents in Mongoose
over 1 year
ago
How do you go about updating a subdocument given the parent id and the child id?
How do you go about updating a subdocument given the parent id and the child id?
Thanks for posting this. I also threw in
string = text.split('-').join(' ').toLowerCase();
for my use. By the way, you shouldn't redeclare your var string the second time.