I need to export values of objects in an array to CSV. Let\'s say my document is:
{ name:\"test\", types:[ {type:\"A\"}, {type:\"B\"},
You'll have to write a custom script that iterates through collections and exports documents in desired format. Built-in mongoexport was not designed for use cases like yours.