StreamfieldsΒΆ

Each Wagtail project will have its own definition of stream field blocks. wagtail-graphql-api does a job of serialising them. However each of the custom blocks has to be defined in the front-end.

The template comes with a StreamField component included however it needs configuration before it can be used.

For any new block type a switch case has to be added, e.g. for an ImageChooserBlock it could be:

Then any page that has a StreamField, it can use that component, e.g.