EdisonPeM / strapi-plugin-import-export-content

Csv and Json import / export content plugin to Strapi
https://www.npmjs.com/package/strapi-plugin-import-export-content
MIT License
146 stars 66 forks source link

Spread JSON objects in CSV outputs to make them more readable #65

Open nirmalhk7 opened 2 years ago

nirmalhk7 commented 2 years ago
If I have following data in my Strapi database: Name School
Nirmal {name: xyz, area:abc}
This plugin would export it exactly like above: keeping the JSON field in a stringified form.. I wish to understand why it can't be like this instead: Name School.name School.area
Nirmal xyz abc

At this line you can add a check whether the element variable is an array or an object. In case if it is an object, you can create extra columns and save the data appropriately.

I have a hunch you knew/ tried to do something like this, so I'm wondering is there anything I'm missing in my understanding of Strapi/ this plugin to figure this out. I'd love to hear some clarification on this.

Awesome job, thanks :v:

ishallwin20 commented 2 years ago

@nirmalhk7 : By any chance, have you come across something that can do bulk update of existing entries (instead of importing new data).