This PR improves the GraphQL schema by narrowing the NodeWithSeo.seo field type down to the implementation type (e.g. RankMathContentNodeSeo, RankMathPostSeoRankMathUserSeo etc.
That means instead of wrapping our queries with ...on *SEO { }, we can access the fields directly on the schema.
What
This PR improves the GraphQL schema by narrowing the
NodeWithSeo.seo
field type down to the implementation type (e.g.RankMathContentNodeSeo
,RankMathPostSeo
RankMathUserSeo
etc.That means instead of wrapping our queries with
...on *SEO { }
, we can access the fields directly on the schema.Why
Closes #79
How
Introduced a new
Utils::overload_graphql_field_type()
to get around https://github.com/wp-graphql/wp-graphql/issues/3096Testing Instructions
Additional Info
Checklist: