How to simply duplicate documents from collectionABC and copy them into collectionB if a condition like {conditionB:1} and add a timestamp like ts_imported – without knowing the details contained within the original documents?
I could not find a simple equivalent for mongodb which is similar to mysql’s INSERT ... SELECT ...
You can use javascript from mongoshell to achieve a similar result: