From ca590f20024151ff14bc016505b84382d0fc6a6b Mon Sep 17 00:00:00 2001 From: Laurie Barth Date: Wed, 29 Jul 2020 09:13:11 -0400 Subject: [PATCH 1/2] Add plugincreator to API --- 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..1331f46f652b9 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, } From 2fa736f60e596e60b2887c9c1f31df3a28a5ace6 Mon Sep 17 00:00:00 2001 From: Laurie Barth Date: Wed, 29 Jul 2020 09:27:25 -0400 Subject: [PATCH 2/2] fix capitlization --- packages/gatsby-recipes/src/providers/gatsby/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-recipes/src/providers/gatsby/page.js b/packages/gatsby-recipes/src/providers/gatsby/page.js index 1331f46f652b9..63bf49229ec34 100644 --- a/packages/gatsby-recipes/src/providers/gatsby/page.js +++ b/packages/gatsby-recipes/src/providers/gatsby/page.js @@ -88,7 +88,7 @@ const schema = { isCreatedByStatefulCreatePages: Joi.boolean(), pluginCreatorId: Joi.string(), componentPath: Joi.string(), - pluginCreator: Joi.Object({ + pluginCreator: Joi.object({ name: Joi.string(), }), ...resourceSchema,