I'm trying to query two JSON files that I put in a src/data directory. I installed gatsby-transformer-json and added the directory as a source.
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/data/`
}
}
I then tried several ways to build the graphql query but I am only able to successfully query the first json file I created work_experiences.json which looks like this although my second file skills.json has the exact same structure
{
"work_experiences": [
{
"body": "lorem ipsum",
"title": "lorem ipsum",
"role": "lorem",
"dateBegin": "2015-10-01",
"dateEnd": "2016-07-03",
"companyUrl": "
http://www.lorem.com",
"workUrl": "/lorem/ipsum/"
},
...
A query on skills.json always returns null
Is there a way to query both files or do I have to merge everything into a single data.json file ?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)