I am currently exploring the possibilities of GatsbyJs and considering the utilization of the gatsby-transformer-csv
plugin. You can find the documentation for this plugin here. I have got my hands on two CSV files exported from WordPress that I am eager to integrate into my Gatsby project. Initially, I am focused on getting one of the CSV files to work, and will deal with the second one later. The two CSV files have corresponding ID's, as one contains textual content like titles and descriptions, while the other holds images.
I have successfully installed the transformer plugin, but I am a bit confused about the process of placing the CSV file, converting it to JSON, and then rendering it as a React component on a specific page. I have glanced at the documentation, and all I can see is a section on how to query data, presented in the following structure:
allLettersCsv {
edges {
node {
letter
value
}
}
}
}