ENUM
RateLimitType
link GraphQL Schema definition
1 enum RateLimitType { 2 # General purpose rate limiting based on number of requests sent. One request always consumes 1 quota point. 3 4 # Every query has a complexity score (including queries inside mutations), 5 # and more complex queries are allowed to be processed less times per given timeframe. 6 # Consumes number of quota points equal to query's complexity. 7 8 # Since there is no mechanism yet for determining mutation's complexity, 9 # just a general number of them is allowed per given timeframe. 10 # One mutation always consumes 1 quota point. 11 12 }
link Required by
- RateLimit Represents a rate limit window for queries and mutations. Rate limiting is implemented using token bucket algorithm, which means that quota points are replenished at a constant rate up to maximum capacity. The relationship between quota numbers is quota = usedQuota + remainingQuota.
- RateLimitFilter