I have successfully sourced data with gatsby-source-contentful
, but can't figure out how to extend contentful queries with markdownRemark
as it's shown in the official gatsby-contentful-starter
.
I added gatsby-transformer-remark
in gatsby-config.js
, ran gatsby clean && gatsby develop
, but still can't see childMarkdownRemark
in Graphiql.
gatsby-config.js
:
module.exports = {
siteMetadata: {
title: 'Test Contentful and MarkdownRemark',
},
plugins: [
{
resolve: `gatsby-source-contentful`,
options: {
// spaceId: 'XXXXXXXXXXXX',
// accessToken: 'XXXXXXXXXXXX',
},
},
`gatsby-transformer-remark`
],
}
package.json
:
{
"name": "test-gatsby-contentful",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"gatsby": "^2.18.2",
"gatsby-source-contentful": "^2.1.62",
"gatsby-transformer-remark": "^2.6.37"
}
}