wso2/product-apim

View GraphQL query analysis values in devportal tryout

Open

#12,490 opened on Feb 25, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (936 forks)auto 404
Feature/GraphQLPriority/NormalType/Improvementgood first issue

Repository metrics

Stars
 (1,002 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe your problem(s)

In the "Complexity Analysis" tab in GraphQL try-out page in devportal, we can see only the complexity Values of each field. If we want to know the complexity value or the depth value, we have to calculate ourself manually. Instead, it would be a nice to have feature to have the possibility to display the calculated complexity/depth values on a button click. So before executing the queries, user would know the complexity/depth value of them.

Another important concern is that eventhough we have named this tab as "Complexity Analysis", there is no analysis doable via that tab. It only displays the complexity values ATM. So the current implementation of the tab is not doing what it says as doing. If we add a capability as $subject this tab name "Complexity Analysis" would be meaningful.

Describe your solution

Should be possible to re-use/adapt the implementation of GraphQLQueryAnalysisHandler to implement this improvement.

Contributor guide