Database

[{"words":["hello","world","cat","dog","word1","word2"]}]

Query

db.collection.aggregate([{$set:{words:{$setUnion:["$words",["friend","hello","world","stack","question"]]}}},{$set:{words:{$filter:{input:"$words",cond:{$not:{$in:["$$this",["hello","world"]]}}}}}}])

Result