I\'ve looked through the mongoose API, and many questions on SO and on the google group, and still can\'t figure out updating embedded documents.
I\'m trying to upda
Is this just a mismatch on variables names?
You have user.userListings[i].listingId in the for loop but user.userListings[i]._id in the find.
user.userListings[i].listingId
for
user.userListings[i]._id
find
Are you looking for listingId or _id?
listingId
_id