All Questions
3
questions
0
votes
1
answer
36
views
problems to update mongodb collection
so I have two different collections for my social media app. One for the users and the other one for the user's posts. Whenever I'm updating the info from one of my user's collection it should also ...
0
votes
1
answer
685
views
Mongoose adding product to Cart products array
I've been trying to figure out how to push new product to existing cart which I have in my database.
updateOne is searching for a a cart with claimed userId and then ties to insert new product into ...
1
vote
1
answer
3k
views
how do I fix this problem I'm having with findOneAndUpdate
Trying to update mongodb doc using findOneAndUpdate method
tried looking up the doc in various ways and reformating the update in different ways
router.put(
"/edit",
[
auth,
[
...