wp-graphql-content-blocks
wp-graphql-content-blocks copied to clipboard
Support nested properties inside block.json attributes
I'd like the plugin to support object properties inside attributes like:
{
...
"attributes": {
"film": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
...
}
}
}
}
Currently any "type": "object"
falls into the generic BlockAttributesObject type, and it seems I can't even extend it with register_graphql_field('MyBlock', 'film', ...
.