Skip to content

Commit

Permalink
Add plugincreator to API (gatsbyjs#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
LB and Laurie Barth committed Jul 29, 2020
1 parent 95ddecb commit c300152
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/gatsby-recipes/src/providers/gatsby/page.js
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 c300152

Please sign in to comment.