We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep getting this error even though I already add the field in gatsby-node.js
Gatsby-node.js interactions { childMarkdownRemark { internal { content } } }
Compiling error:
GraphQLError: Cannot query field "interactions" on type "frontmatter".
new Promise
index.js:370 graphqlRunner [gatsby-bootcamp]/[gatsby]/dist/bootstrap/index.js:370:14
gatsby-node.js:17 Object.exports.createPages /home/rot/Desktop/esseehcerto/gatsby-bootcamp/gatsby-node.js:17:10
api-runner-node.js:154 runAPI [gatsby-bootcamp]/[gatsby]/dist/utils/api-runner-node.js:154:37
api-runner-node.js:258 resolve [gatsby-bootcamp]/[gatsby]/dist/utils/api-runner-node.js:258:19
debuggability.js:313 Promise._execute [gatsby-bootcamp]/[bluebird]/js/release/debuggability.js:313:9
promise.js:483 Promise._resolveFromExecutor [gatsby-bootcamp]/[bluebird]/js/release/promise.js:483:18
The text was updated successfully, but these errors were encountered:
Hello @bentri 👋
Can you share your entire gatsby-node.js as well as the pages that you've added interactions to?
gatsby-node.js
interactions
Sorry, something went wrong.
gatsby-node.js = https://pastebin.com/myu7PxRB drugs.js = https://pastebin.com/SVrhEVvC Every substance I added an interaction.md following the pattern of each substance
@bentri Sorry for taking so long to follow up.
Did you also add:
interactions: './interactions.md'
In each substance's index.md?
index.md
No branches or pull requests
Keep getting this error even though I already add the field in gatsby-node.js
Gatsby-node.js
interactions {
childMarkdownRemark {
internal {
content
}
}
}
Compiling error:
GraphQLError: Cannot query field "interactions" on type "frontmatter".
new Promise
index.js:370 graphqlRunner
[gatsby-bootcamp]/[gatsby]/dist/bootstrap/index.js:370:14
gatsby-node.js:17 Object.exports.createPages
/home/rot/Desktop/esseehcerto/gatsby-bootcamp/gatsby-node.js:17:10
api-runner-node.js:154 runAPI
[gatsby-bootcamp]/[gatsby]/dist/utils/api-runner-node.js:154:37
api-runner-node.js:258 resolve
[gatsby-bootcamp]/[gatsby]/dist/utils/api-runner-node.js:258:19
debuggability.js:313 Promise._execute
[gatsby-bootcamp]/[bluebird]/js/release/debuggability.js:313:9
promise.js:483 Promise._resolveFromExecutor
[gatsby-bootcamp]/[bluebird]/js/release/promise.js:483:18
The text was updated successfully, but these errors were encountered: