_MONGOSH Terminal Commands
When every you run these commands in MongoDB Compass (_MONGOSH terminal) you will need to select the collection you are targeting
use Collections;
Mark documents at collected by specific connector which filter on specified query
db["<yourCollectionId>"].updateMany({<yourQuery>},{ $addToSet: { '_system.collectedByConnector': "<yourConnectorId>"} });
Mark documents as NOT collected -> will get reprocessed by ALL connectors
db["<yourCollectionId>"].updateMany({<yourQuery>},{"$unset":{"_system":""}});
Mark documents as NOT collected -> will get reprocessed by SPECIFIC connectors
db["<yourCollectionId>"].updateMany({<yourQuery>},{ $pull: { '_system.collectedByConnector': "<yourConnectorId>"});
Remove a specific Document from a Collection
db["<yourCollectionId>"].remove({<yourQuery>});
Last updated