Sep 4, 2018 · 1 min read
Hi, Eslam! I wanted to ask about this part here in the Update section:
{$set: req.body}which is one of the parameters you sent in findByIdAndUpdate. Is it a JSON object? I haven’t seen the ‘$’ notation used in such a way before.