ashhitch / wp-graphql-yoast-seo

This is an extension to the WPGraphQL plugin for Yoast SEO
GNU General Public License v3.0
225 stars 48 forks source link

No query avaiable to get homepage seo data #142

Closed H-Nguyenx closed 1 year ago

H-Nguyenx commented 2 years ago

Hi, I can not find graphql query to retrieve homepage seo information in the image below through wp-graphql-yoast-seo plugin. There is only social information of homepage query avaiable. Screenshot_20221111_034517

cantoute commented 2 years ago

If home page is a page, the data should be accessible from something like getByUri('/').page.

I would be missing seo {} on ContentType (Aka page listing all posts of a custom post type)

I spotted there was some seo data in pageInfo.seo.schema but I couldn't find where I could pick the title.

Should I post a separate feature request?

Thanks


Edit: I had missed out the seo root query SEOConfig

ashhitch commented 2 years ago

Hey, i should be able to get this added in for you

ashhitch commented 1 year ago

@cantoute this is in v4.20.0

query GetSeoConfig {
    seo {
        meta {
            author {
                description
                title
            }
            config {
                separator
            }
            homepage {
                description
                title
            }
            notFound {
                breadcrumb
                title
            }
        }
}