strawberry-graphql / strawberry-django

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

Apollo Sandbox doesn't update debug toolbar #514

Closed catgirlinspace closed 5 months ago

catgirlinspace commented 5 months ago

Describe the Bug

Sending GraphQL requests from Apollo Sandbox (when configured with the graphql_ide parameter) does not update the debug toolbar like it does for GraphiQL.

GraphiQL properly updates the debug toolbar:

image

Apollo Sandbox does not:

image

Upvote & Fund

Fund with Polar

bellini666 commented 5 months ago

Hrm, we have a custom subclass of the debug toolbar middleware in here (https://github.com/strawberry-graphql/strawberry-django/blob/main/strawberry_django/middlewares/debug_toolbar.py#L165), which in theory should not be graphiql specific.

Maybe we need to tweak it...

bellini666 commented 5 months ago

Think I found the issue, the fix will be included in the next release