My graphQL query is returning same values of ‘Yoast SEO fields’ for all my posts in wordpress graphQL IDE?
I am using WPGraphQL(v2.3.8), Add WPGraphQL SEO(v5.0.0) and WP Gatsby(v2.3.3) plugins in wordpress.
graphQL query-
{
posts {
nodes {
id
title
seo {
title # yoast seo field
metaDesc # yoast seo field
}
}
}
}
In output unique id and title(outside seo object) are returned for each post but the same seo fields are returned for all the posts i.e the seo fields of first post.
I have already checked the wordpress database, data is correct there.
I think there is something with Add WPGraphQL SEO plugin that is creating problem. Can somebody help me with this?
Read more here: Source link
