This function compares an entry collection (the document values) to those in an field on another document.
If the array has a value not in the collection, it creates a new document, if there is an entry (document) not in the array, it deletes that document.
In other words, this functions as a type of replication between a key host document's field values and documents created/updated/deleted based on those values.
previous page
|