MongoDB Connector > Mappings and mapping tasks with MongoDB > Writing to an empty collection
  

Writing to an empty collection

You can write data to empty MongoDB targets only in JSON mode by mapping the DocumentAsJSON field from the source to the target, through which you can write the entire MongoDB source collection to the MongoDB target collection.