You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to access a ListBlock of StreamBlocks, and no matter how we try to query it, we can't get any data out of the StreamBlocks.
I don't have time to produce a reduced example today, but I wanted to go ahead and get this open to see if anyone else has experienced this. I suspected it might have something to do with this method only seeming to support a ListBlock of StructBlocks:
but absolutely nothing I change in that method alters the behavior of GraphQL. In fact, I can empty out the entire class and put in a dummy Graphene property, and the basic ListBlock of ButtonBlocks example from the docs still works fine!
classListBlock(graphene.ObjectType):
whatishappening=graphene.String()
# items = graphene.List(graphene.NonNull(StreamFieldInterface), required=True)# class Meta:# interfaces = (StreamFieldInterface,)# def resolve_items(self, info, **kwargs):# Get the nested StreamBlock type# block_type = self.block.child_block# Return a list of GraphQL types from the list of values# return [StructBlockItem(self.id, block_type, item) for item in self.value]
So, I am very confused about what is going on there.
The text was updated successfully, but these errors were encountered:
We are trying to access a ListBlock of StreamBlocks, and no matter how we try to query it, we can't get any data out of the StreamBlocks.
I don't have time to produce a reduced example today, but I wanted to go ahead and get this open to see if anyone else has experienced this. I suspected it might have something to do with this method only seeming to support a ListBlock of StructBlocks:
wagtail-grapple/grapple/types/streamfield.py
Lines 402 to 406 in 0d20a8c
but absolutely nothing I change in that method alters the behavior of GraphQL. In fact, I can empty out the entire class and put in a dummy Graphene property, and the basic ListBlock of ButtonBlocks example from the docs still works fine!
So, I am very confused about what is going on there.
The text was updated successfully, but these errors were encountered: