Just in case other people reach here from this blog - https://wagtail.io/blog/graphql-with-streamfield/
|
@staticmethod |
|
def serialize(dt): |
|
return dt.stream_data |
I think on Wagtail>=2.14 this needs to be something like
@staticmethod
def serialize(dt):
return list(dt.raw_data)
Just in case other people reach here from this blog - https://wagtail.io/blog/graphql-with-streamfield/
wagtail-ql/backend/graphene_utils/converter.py
Lines 8 to 10 in 963ab22
I think on Wagtail>=2.14 this needs to be something like