Is it normal for queries within the WordPress Dashboard using GraphiQL not to match the localhost version? When I run into errors I hop into WP for testing but the names don't match so it leaves me guessing.
wpPost vs. post
Thanks!


I would love to hear what others have to say but I thought it's because of schema merging: https://github.com/gatsbyjs/gatsby-source-wordpress-experimental/blob/master/docs/features/schema-merging.md
Ah, yeah this is indeed because of schema merging. Essentially what happens is that the source plugin automatically consumes the WPGraphQL schema and automatically creates a brand new schema from the data returned and from the original schema. While doing this it mixes the Gatsby node model schema with the WPGraphQL schema. This means we get proper caching and inc builds support as well as all the automatically generated filters that Gatsby provides but it also means that the node field names and types are slightly different.
I'm going to keep this issue open as a reminder that docs around this need to be improved.
Most helpful comment
Ah, yeah this is indeed because of schema merging. Essentially what happens is that the source plugin automatically consumes the WPGraphQL schema and automatically creates a brand new schema from the data returned and from the original schema. While doing this it mixes the Gatsby node model schema with the WPGraphQL schema. This means we get proper caching and inc builds support as well as all the automatically generated filters that Gatsby provides but it also means that the node field names and types are slightly different.
I'm going to keep this issue open as a reminder that docs around this need to be improved.