strawberry-graphql / strawberry-django

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

Apollo Sandbox doesn't update debug toolbar #514

Closed catgirlinspace closed 7 months ago

catgirlinspace commented 8 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 8 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 7 months ago

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