Skip to content

Improve SPARQL / GQL debugging #1715

@bprusinowski

Description

@bprusinowski

It would be helpful to include more metadata in the GRAPHQL section in the debug panel – currently it's impossible to know the "source" of a given query (e.g. a client-side hook called from configurator-state.tsx file to populate urql cache).

The idea would be to be able to pass e.g. a "queryReason" and "querySource" properties to urql hooks, that would be passed down the road to GQL server, which would include them in extensions shown in the debug panel.

With this change, we would be able to more easily investigate why a particular query was made, and how we could potentially improve the whole data fetching flow.

cc @Rdataflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions