Skip to content

A plug and play GraphQL API for Wagtail, powered by Strawberry πŸ“

License

Notifications You must be signed in to change notification settings

patrick91/strawberry-wagtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

55b9796 Β· Mar 10, 2023

History

12 Commits
Mar 9, 2023
Dec 8, 2022
Mar 10, 2023
Mar 9, 2023
Mar 25, 2022
Nov 23, 2022
Mar 25, 2022
Mar 25, 2022
Mar 25, 2022
Mar 25, 2022
Nov 23, 2022
Mar 10, 2023

Repository files navigation

Strawberry Wagtail 🐦

A plug and play GraphQL API for Wagtail, powered by Strawberry πŸ“

⚠️ Strawberry wagtail is currently experimental, please report any bugs or missing features

Quick start

  1. Install Strawberry Wagtail
pip install strawberry-wagtail
  1. Add 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",
]
  1. Add the GraphQL view to your urls:
from strawberry_wagtail.views import GraphQLView

from django.urls import path


urlpatterns = [
    path("graphql", GraphQLView.as_view()),
]
  1. Done! You can now try your GraphQL API by going to http://localhost:8000/graphql

About

A plug and play GraphQL API for Wagtail, powered by Strawberry πŸ“

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published