A plug and play GraphQL API for Wagtail, powered by Strawberry 🍓
⚠️ Strawberry wagtail is currently experimental, please report any bugs or missing features
pip install strawberry-wagtail
strawberry-wagtail
to your INSTALLED_APPS
:
INSTALLED_APPS = [
"home",
"search",
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
"wagtail.embeds",
"wagtail.sites",
"wagtail.users",
"wagtail.snippets",
"wagtail.documents",
"wagtail.images",
"wagtail.search",
"wagtail.admin",
"wagtail.core",
...,
"strawberry_wagtail",
]
from strawberry_wagtail.views import GraphQLView
from django.urls import path
urlpatterns = [
path("graphql", GraphQLView.as_view()),
]