Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
catgirlinspace committed Apr 18, 2024
2 parents ca12dde + 6b42364 commit a41f644
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# 🍓Strawberry Persisted Queries

[![PyPI](https://img.shields.io/pypi/v/strawberry_persisted_queries?logo=pypi&logoColor=white&style=for-the-badge)](https://pypi.org/project/strawberry_persisted_queries/)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/catgirlinspace?style=for-the-badge&logo=githubsponsors)](https://github.com/sponsors/catgirlinspace)

Apollo-compatible persisted queries for Strawberry.

## Usage

Add `PersistedQueriesExtension` to your extensions.
Add `PersistedQueriesExtension()` to your extensions.

```python
import strawberry
Expand All @@ -22,7 +23,7 @@ schema = strawberry.Schema(

### Django

For Django, a Django cache backend is available.
For Django users, a Django cache backend is available. This uses the default cache set in Django.
```python
from strawberry_persisted_queries.django_cache import DjangoPersistedQueryCache

Expand Down Expand Up @@ -58,4 +59,4 @@ class MyCache(PersistedQueryCache):
cache.set(query_hash, value)

PersistedQueriesExtension(cache_backend=MyCache())
```
```

0 comments on commit a41f644

Please sign in to comment.