hygraph / gatsby-source-graphcms

The official Gatsby source plugin for GraphCMS projects
https://graphcms.com
MIT License
145 stars 41 forks source link

fix: Use correct root query fields #96

Closed ynnoj closed 4 years ago

ynnoj commented 4 years ago

When writing the GraphCMS queries to source data for nodes, use the root query fields from the GraphQL schema.

Previously these were compiled using the schema type names. However query fields can be specified by GraphCMS users during model creation so they may differ entirely from the model name/type.

github-actions[bot] commented 4 years ago

:tada: This PR is included in version 2.0.0-next.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: