apollographql / apollographql/apollo-server

Usage reporting plugin needs to support input fields

Open
#7,910 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14k
Forks
2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

Usage reporting seems very incomplete without knowing the usage of input fields.

The variable reporting is insufficient for the use case of checking apollo studio to see whether a deprecated input field is still being used, so it can be removed. This is because you can hard code values into a graphql query (not input them as variables) and the [`sendVariableValues`](https://www.apollographql.com/docs/apollo-server/api/plugin/usage-reporting/#valid-sendvariablevalues-object-signatures) will not report these values.

There is this merge request that was reverted and never reintroduced for some reason https://github.com/apollographql/apollo-server/pull/4654 (cc @sachindshinde)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the usage reporting plugin and the sendVariableValues documentation, then compare the reverted pull request #4654 with the current implementation. Define the expected reporting behavior for hard-coded GraphQL input fields and verify that Apollo Studio can use the resulting data to identify deprecated fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
backend-api-design, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.