Get result of Documents updated from mongoimport
问题 I'm upserting Documents into a Collection using mongoimport . I'm using shelljs to just run the actual mongoimport command the same way it'd be run through a CLI. E.g. mongoimport docs.json -d DB -c Collection --jsonArray --upsertFields=foo,bar This just outputs the # of Documents updated - but doesn't give any further details on what exactly was changed. However, I need to be able to see which documents were actually updated/inserted and then do something with these results. I would've