Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[schema] Add default page dependency path #12220

Conversation

stefanprobst
Copy link
Contributor

Currently, users of context.nodeModel methods are required to provide page dependency information manually. This still works, but this PR adds context.path as the default path, so providing page dependency info becomes optional. (Luckily, we instantiate a new LocalNodeModel everytime a field resolver is called!) When field resolvers are called in the "prepare nodes for query" step, no path information is added.

@stefanprobst stefanprobst requested a review from a team as a code owner March 1, 2019 15:54
@freiksenet freiksenet merged commit e344292 into gatsbyjs:schema-refactor-new Mar 1, 2019
@stefanprobst stefanprobst deleted the add-default-page-dependency-path branch March 1, 2019 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants