You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm new to this plugin and WPGraphQL and I would like to know if it's correct that the fields are empty with asPreview or if I rather need to change something.
This is my query:
constGET_POST_BY_ID=gql` query PostBySlug($id: ID!, $idType: PostIdType = URI, $asPreview: Boolean = false) { post(id: $id, idType: $idType, asPreview: $asPreview) { id slug isPreview title(format: RENDERED) content(format: RENDERED) featuredImage { node { uri altText } } seo { title metaDesc metaKeywords breadcrumbs { text url } } } }`
Hello,
I'm new to this plugin and WPGraphQL and I would like to know if it's correct that the fields are empty with
asPreview
or if I rather need to change something.This is my query:
And this is the method I use to run the query:
When the variable
asPreview
is set to true, some fields related to Yoast SEO are empty. In particular:Am I wrong something or is it correct that it behaves like this?
The text was updated successfully, but these errors were encountered: