nestjs-graphql-rate-limit
Version:
Rate Limit module with Redis storage support for NestJS GraphQL APIs
9 lines • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RateLimit = void 0;
const common_1 = require("@nestjs/common");
const throttler_1 = require("@nestjs/throttler");
const gql_throttler_guard_1 = require("../guard/gql-throttler.guard");
const RateLimit = (limit, ttl) => common_1.applyDecorators(common_1.UseGuards(gql_throttler_guard_1.GqlThrottlerGuard), throttler_1.Throttle(limit, ttl));
exports.RateLimit = RateLimit;
//# sourceMappingURL=rate-limit.js.map