I convert the qualified _id into a string and store it in a collection. When querying documents, how to query documents whose objectId is not an element in the collection? $nin? $ne? The main problem is that the id is objectId, which is a bit blind.
It’s still $nin. Convert _id set to LIst<ObjectId > and implement with $nin