From 32bea4b48a8e3ffb63b87112aead4446a417908c Mon Sep 17 00:00:00 2001 From: LB Date: Wed, 29 Jul 2020 10:32:38 -0400 Subject: [PATCH] Add plugincreator to API (#26101) * Add plugincreator to API * fix capitlization Co-authored-by: Laurie Barth --- packages/gatsby-recipes/src/providers/gatsby/page.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/gatsby-recipes/src/providers/gatsby/page.js b/packages/gatsby-recipes/src/providers/gatsby/page.js index 5fc0fa4ca2d51..63bf49229ec34 100644 --- a/packages/gatsby-recipes/src/providers/gatsby/page.js +++ b/packages/gatsby-recipes/src/providers/gatsby/page.js @@ -21,6 +21,9 @@ module.exports.read = async ({ root }, id) => { id componentPath isCreatedByStatefulCreatePages + pluginCreator { + name + } } } ` @@ -64,6 +67,9 @@ module.exports.all = async ({ root }) => { id componentPath isCreatedByStatefulCreatePages + pluginCreator { + name + } } } } @@ -72,6 +78,7 @@ module.exports.all = async ({ root }) => { return result.data.allSitePage.nodes } + const schema = { internalComponentName: Joi.string(), path: Joi.string(), @@ -81,6 +88,9 @@ const schema = { isCreatedByStatefulCreatePages: Joi.boolean(), pluginCreatorId: Joi.string(), componentPath: Joi.string(), + pluginCreator: Joi.object({ + name: Joi.string(), + }), ...resourceSchema, }