graphql-hive / graphql-hive/console

[Feature request] Include @requires usage of subgraph fields for insights

Open
#7,537 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
483
Forks
145
Avg merge
2d 5h
Merged PRs (30d)
65

Description

Not sure on what the consequences of this would be, but a thing i've been wondering at times is how often certain fields get fetched through `@requires` by other subgraphs. In essence this is not so different as a client interacting with the federated gateway and fetching data. In other words defining an `@requires` on a field is in essence just a client fetching data from that subgraph.

A situation where this could prove useful is when in hive insights the usage is none by outside clients but the field are still being used through `@requires`. Currently you're rather blind on the amount of traffic going to that subgraph. It can even give you the impression that the field can be cleaned up. even though its still `@externally` referenced.

Curious in your thoughts and implications of this !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.