From 3f9091b0c00cacd00c5117b08c88485eef2a6c63 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Wed, 7 Sep 2022 09:10:50 -0700 Subject: [PATCH] Update creating-a-source-plugin.md You shouldn't add `content` unless node can be transformed. As is, this just duplicates the content which increases memory & slows all IO. --- .../docs/how-to/plugins-and-themes/creating-a-source-plugin.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/docs/how-to/plugins-and-themes/creating-a-source-plugin.md b/docs/docs/how-to/plugins-and-themes/creating-a-source-plugin.md index 87013c8fdeec2..5124eee72ac82 100644 --- a/docs/docs/how-to/plugins-and-themes/creating-a-source-plugin.md +++ b/docs/docs/how-to/plugins-and-themes/creating-a-source-plugin.md @@ -169,7 +169,6 @@ exports.sourceNodes = async ({ children: [], internal: { type: POST_NODE_TYPE, - content: JSON.stringify(post), contentDigest: createContentDigest(post), }, }) @@ -421,7 +420,6 @@ exports.sourceNodes = async ({ children: [], internal: { type: POST_NODE_TYPE, - content: JSON.stringify(post), contentDigest: createContentDigest(post), }, }) @@ -435,7 +433,6 @@ exports.sourceNodes = async ({ children: [], internal: { type: AUTHOR_NODE_TYPE, - content: JSON.stringify(author), contentDigest: createContentDigest(author), }, })