1
私はMongoDBの中に複数のデータベースエントリを更新しようとしている:
User.findByIdAndUpdate(req.user._id,
{$push: {people_seen: person_id}},
{$push: {people_liked: person_id}},
function(err, usr){
console.log(req.user);
res.json({success: true});
});
はしかし、唯一people_seen
が救われます。