seo
fields should resolve directly to the GraphQL object (instead of the interface) when possible.
#79
Labels
status: confirmed 📍
The issue has been confirmed and reproduced.
type: enhancement ⚡
Improves on an existing feature
Description
Currently
${objectType}.seo
is typed asRankMathSeo
instead ofRankMath${ObjectType}Seo
.This requires you to unnecessarily drill down the interface, like in 53efda5
We should leave the
NodeWithSeo
interface to use theRankMathSeo
type, but for all direct connections we should resolve straight to the object. This would reduce complexity on both the query and implementation (i.e. graphql-Codegen) side of this.Important
This may be a breaking change to implement.
Steps to reproduce
Additional context
No response
Plugin Version
0.1.0
WordPress Version
6.4.3
WPGraphQL Version
1.22.0
RankMath SEO Version
1.215.1
Additional enviornmental details
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for RankMath SEO, WPGraphQL, and WPGraphQL for Rank Math
The text was updated successfully, but these errors were encountered: