CSV export does not stringify arrays properlySee original GitHub issue
If your collection has an array, the exported csv will show something like:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
for that particular field.
Maybe it’s possible to print these nested collections in a better way? Not exactly sure how, but something like YAML style sounds appropriate.
Let me know what you think. I don’t mind working on this if its not a priority for you.
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Ah yes, serialising arrays of objects in CSV files is a problem! There seems not to be a preferred way to do it. The way I would go with it is to include the data as a JSON probably. We are currently not using YAML anywhere within the app. It probably makes sense to include some exporting options in that dialog, such as how to serialise arrays, or date formats (unix timestamps vs ISO8601). Regarding the setup I use locally, I use yarn to link the main project with the example project.
- So I run
yarn linkin the main library folder
- And then
yarn link @camberi/firecmsin the project you would like to have FireCMS as a dependency. Thanks!!