Closed tbrlpld closed 4 years ago
Sorry, just realized this is already coming from the backend. I'll open the issue in the Grapple repo and close this one.
Guess this is related to https://github.com/GrappleGQL/wagtail-grapple/issues/48 and https://github.com/GrappleGQL/wagtail-grapple/pull/54
Hi,
I just ran into an error when trying to query the
blocks
field of aStructBlock
in aStreamField
.My
BlogPage
Wagtail model contains aStreamField
like this:A query for the
StructBlock
without theblocks
field will work fine and I get the expected response.But when I add the
blocks
fieldthen I get the following error:
It seems like the issue is related to the handling of the
ImageChooserBlock
that is on field in theStructBlock
.Update: I just confirmed it. When I remove the
ImageChooserBlock
from theStructBlock
definition, then I can query theblocks
field successfully.Update: Just added the field back in and it worked as long as no image was defined for the field in the backend. Once an image is selected, then it breaks.