Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Need to identify and forbid very expensive queries #2

Open
proehlen opened this issue Feb 12, 2018 · 0 comments
Open

Need to identify and forbid very expensive queries #2

proehlen opened this issue Feb 12, 2018 · 0 comments

Comments

@proehlen
Copy link
Member

Searching reveals no standard way to implement this and various teams/products have used different approaches.

Suggest we use the context argument to track the query as it is executing and generate an error when the cost becomes too high. Metrics that could be tracked include:

  • Depth
  • Number of resolver hits
  • Cumulative size of data returned by resolvers
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant