Skip to content

Commit

Permalink
docs: Remove mention about having to enable subscriptions in the docs
Browse files Browse the repository at this point in the history
The subscriptions feature is now enabled by default.

Not only that, but the keyword to enable it got removed in
https://github.com/strawberry-graphql/strawberry/releases/tag/0.245.0
  • Loading branch information
bellini666 committed Oct 19, 2024
1 parent 5ff6250 commit bd99210
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions docs/guide/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,6 @@ application = AuthGraphQLProtocolTypeRouter(
)
```

Also, ensure that you enable subscriptions on your AsgiGraphQLView in `MyProject.urls.py`:

```python
...

urlpatterns = [
...
path(
'graphql/',
AsyncGraphQLView.as_view(
schema=schema,
graphiql=settings.DEBUG,
subscriptions_enabled=True,
),
),
...
]

```

Note, django-channels allows for a lot more complexity. Here we merely cover the basic framework to get subscriptions to run on Django with minimal effort. Should you be interested in discovering the far more advanced capabilities of Dango channels, head over to [channels docs](https://channels.readthedocs.io)

## Setup local testing
Expand Down

0 comments on commit bd99210

Please sign in to comment.