Skip to content

Tag: mongodb

Blaze template, loop through fields?

I have been unable to find reference to any shortcut that might be available to loop through fields that are named “week01”, “week02”, “week03” where I could reference the field which is an object containing child fields in the same structure. I know of #each for each docum…

Mongoose update Sub-Document

How to updating sub-document in mongoose: this is my JSON DATA This is the post Schema. this is the NodeJs part ** I got this response in Postman: post.comments.update is not a function it accept post.update but it’s not what i want because the property message is in the sub-doc of each post object, any…