strawberry-graphql / strawberry-django

Strawberry GraphQL Django extension
https://strawberry.rocks/docs/django
MIT License
406 stars 117 forks source link

Document how to use it with django cache framework? #623

Open baseplate-admin opened 2 weeks ago

baseplate-admin commented 2 weeks ago

Feature Request Type

Description

Hi, django has a very good caching framework that can work in a distributed manner. I was wondering if it was possible to cache the result of graphql output like we can with django-rest-framework

Upvote & Fund

Fund with Polar

bellini666 commented 3 days ago

To add here, we do have an extension that can cache results in here: https://github.com/strawberry-graphql/strawberry-django/blob/main/strawberry_django/extensions/django_cache_base.py

What we need for this issue is to properly document it :)

bellini666 commented 3 days ago

obs. this is related to https://github.com/strawberry-graphql/strawberry-django/issues/620