Answers for "mongodb add to array if not exists"

2

mongodb add to array if not exists

db.tags.update(
    {name: 'sport'},
    {$addToSet: { videoIDs: "34f54e34c" } }
);
Posted by: Guest on October-22-2020

Code answers related to "mongodb add to array if not exists"

Browse Popular Code Answers by Language