Skip to content

Commit

Permalink
Add plugincreator to API (#26101)
Browse files Browse the repository at this point in the history
* Add plugincreator to API

* fix capitlization

Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
  • Loading branch information
2 people authored and KyleAMathews committed Jul 29, 2020
1 parent 7cdc55c commit 32bea4b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/gatsby-recipes/src/providers/gatsby/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports.read = async ({ root }, id) => {
id
componentPath
isCreatedByStatefulCreatePages
pluginCreator {
name
}
}
}
`
Expand Down Expand Up @@ -64,6 +67,9 @@ module.exports.all = async ({ root }) => {
id
componentPath
isCreatedByStatefulCreatePages
pluginCreator {
name
}
}
}
}
Expand All @@ -72,6 +78,7 @@ module.exports.all = async ({ root }) => {

return result.data.allSitePage.nodes
}

const schema = {
internalComponentName: Joi.string(),
path: Joi.string(),
Expand All @@ -81,6 +88,9 @@ const schema = {
isCreatedByStatefulCreatePages: Joi.boolean(),
pluginCreatorId: Joi.string(),
componentPath: Joi.string(),
pluginCreator: Joi.object({
name: Joi.string(),
}),
...resourceSchema,
}

Expand Down

0 comments on commit 32bea4b

Please sign in to comment.