pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
299 stars 61 forks source link

blocksJSON only contains the image ID, then we need to make additional calls to fetch the image data of a page #150

Open brianpereradap opened 2 years ago

brianpereradap commented 2 years ago

When we are querying a page that consists of a set Gutenberg ACF blocks, we would like to get all the images that are part of the block in a single request.

At the moment the block JSON on the page only consists of the image id. We have to now make additional call/s to fetch the image information for this block.

I there a way we can embed the image information into the blockJSON without needing to make additional calls?

image

DesignyourCode commented 1 year ago

Is there any movement on this? Are there any hooks for modifying the blocksJSON response so this could be added in that way?