When using the blocksJSON property in a query against a post/page then the data is returned correctly for most blocks, but if there is a reusable block in use then the innerBlocks of it isn't populated.
We don't drill down into our blocks through graphQL as we don't generally know the max depth of blocks an editor might use, and it saves us creating a complex nested query.
So the blocksJSON property has been a savior for us.
When using the blocksJSON property in a query against a post/page then the data is returned correctly for most blocks, but if there is a reusable block in use then the innerBlocks of it isn't populated.
We don't drill down into our blocks through graphQL as we don't generally know the max depth of blocks an editor might use, and it saves us creating a complex nested query.
So the blocksJSON property has been a savior for us.
To fix this i've changed this part https://github.com/pristas-peter/wp-graphql-gutenberg/blob/f015b8997085961e4fe71ef5960647994c514ac5/src/Blocks/Block.php#L186
To this
Then the innerBlocks of a reusable block should be the same as the blocks that were stored in the post created for it.