diff --git a/docs/docs/creating-a-source-plugin.md b/docs/docs/creating-a-source-plugin.md index ffff109d76463..0ce21a9a8945e 100644 --- a/docs/docs/creating-a-source-plugin.md +++ b/docs/docs/creating-a-source-plugin.md @@ -429,10 +429,10 @@ One challenge when developing locally is that a developer might make modificatio If possible, the proactive listener approach creates the best experience if existing APIs in the data source can support it (or you have access to build support into the data source). -The code to support this behavior looks like this: +Here's some pseudo code that shows this behavior: ```javascript:title=source-plugin/gatsby-node.js -exports.sourceNodes = async ({ actions }, pluginOptions) => { +exports.sourceNodes = async ({ actions, getNodesByType }, pluginOptions) => { const { createNode, touchNode, deleteNode } = actions // highlight-start