My FeedDiscussionsHeadless CMS
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Why am I not able to modify the variable returned by Mongoose query?

Why am I not able to modify the variable returned by Mongoose query?

Shankar K's photo
Shankar K
·Mar 9, 2016
Article.find({}).exec(function(err, articles) {
    articles.date = moment();
    return res.json({articles: articles});
});

The extra date property that i'm adding is not showing in response.