wp-graphql-gutenberg icon indicating copy to clipboard operation
wp-graphql-gutenberg copied to clipboard

value attribute is empty in CoreQuoteBlock

Open marcwieland95 opened this issue 2 years ago • 1 comments

It seems that there are changes in the structure of the Core Quote Block between WP 5.9 and 6.1. This results in the issue that the value attribute queried from GraphlQL returns in an empty property.

... on CoreQuoteBlock {
    attributes {
        ... on CoreQuoteBlockAttributes {
            value
            citation
        }
    }
}

marcwieland95 avatar Jan 19 '23 17:01 marcwieland95

An update from my side. WordPress shifted the content of different blocks into "innerBlocks". So in this case.

Our query looks like that now:

... on CoreQuoteBlock {
        innerBlocks {
            originalContent
        }
}

CleanShot 2024-03-19 at 16 13 45@2x

marcwieland95 avatar Mar 19 '24 08:03 marcwieland95