Description
Describe the bug
Hello,
we recently migrated from Apollo Server to GraphQL Yoga and started using the "useApolloUsageReport" plugin instead of the original "ApolloServerPluginUsageReporting" plugin.
After a few days of use, we noticed that the metrics in Apollo Studio are missing important information about the number of requests that were previously there.
The problem only occurs in the section for "individual object fields" - Insights => Object Fields (filter)
. Details can be seen on the attached screenshots bellow. The number of requests for "GraphQL operations" - Insights => Operations (filter)
is displayed correctly. NOTE that the number of requests
is missing (is always zero), but the number of executions
is available.
BEFORE - Apollo Server + ApolloServerPluginUsageReporting plugin
AFTER - GraphQL Yoga + useApolloUsageReport plugin
Maybe @EmrysMyrddin could help because he knows how it all works? 😉
Your Example Website or App
https://studio.apollographql.com/
Steps to Reproduce the Bug or Issue
Just use the "useApolloUsageReport" plugin. 🙂
Expected behavior
"useApolloUsageReport" plugin should report also number of requests for "individual object fields".
Platform
@graphql-yoga/[email protected]