In a client project we are making use of GraphQL batching which bundles several graphql queries into one request. This results in the top level JSON body data structure being a list. This causes an exception when using that URL with this middleware enabled.
This change checks that GraphiQL is enabled before adding in the debugToolbar content.
Please let me know if you would like any more changes or tests added.
In a client project we are making use of GraphQL batching which bundles several graphql queries into one request. This results in the top level JSON body data structure being a list. This causes an exception when using that URL with this middleware enabled.
This change checks that GraphiQL is enabled before adding in the debugToolbar content.
Please let me know if you would like any more changes or tests added.