Debugging database queries in Django is commonly done with the Django Debug Toolbar or similar middlewares. However when using Graphene / GraphQL, these queries are not captured. Is there a method to view these queries apart from logging all queries? I am running an ASGI where the some code paths are logged (Django admin, user authentication) but not those from Graphene. Could this be related to https://github.com/jazzband/django-debug-toolbar/issues/1430 ?
For my use case in particular I want to analyze GraphQL queries. However for the following query these are the logged queries. The request returns a number of entries.
{
allPeripheralComponents {
edges {
node {
id
siteEntity{
name
}
peripheralType
dataPointTypeSet{
edges{
node{
id
name
unit
}
}
}
}
}
}
}