You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and put a high load on the system. When I use e.g. default_cost=1, maximum_cost=5 the request cannot go deeper than furniture level but at the same time I can't query for more than 5 fields of any resource. Do I have to use the @cost directive in specific places? At this point, the question becomes a general one about GraphQL. I was wondering if there's a solution specifically in ariadne already. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hej all, I'd like to know whether (and how) I can use cost validation to limit the query depth. E.g. a client could request
and put a high load on the system. When I use e.g.
default_cost=1, maximum_cost=5
the request cannot go deeper thanfurniture
level but at the same time I can't query for more than 5 fields of any resource. Do I have to use the@cost
directive in specific places? At this point, the question becomes a general one about GraphQL. I was wondering if there's a solution specifically in ariadne already. Thanks!Beta Was this translation helpful? Give feedback.
All reactions