Skip to content

Commit c464162

Browse files
committed
Merge branch 'dev' of github.com:oslabs-beta/GraphQL-Gate into em/typeComplexityAlgo
2 parents 8d09a5c + 3cfbef4 commit c464162

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/middleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import getQueryTypeComplexity from '../analysis/typeComplexityAnalysis';
1616
* @param {RateLimiterSelection} rateLimiter Specify rate limiting algorithm to be used
1717
* @param {RateLimiterOptions} options Specify the appropriate options for the selected rateLimiter
1818
* @param {GraphQLSchema} schema GraphQLSchema object
19-
* @param {RedisClientOptions} RedisOptions // TODO add dsecription
19+
* @param {RedisClientOptions} RedisOptions ioredis connection options https://ioredis.readthedocs.io/en/stable/API/#new_Redis
2020
* @param {TypeWeightConfig} typeWeightConfig Optional type weight configuration for the GraphQL Schema.
2121
* Defaults to {mutation: 10, object: 1, field: 0, connection: 2}
2222
* @returns {RequestHandler} express middleware that computes the complexity of req.query and calls the next middleware

test/middleware/express.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Request, Response, NextFunction, RequestHandler } from 'express';
22
import { GraphQLSchema, buildSchema } from 'graphql';
33
import * as ioredis from 'ioredis';
44

5-
import expressRateLimitMiddleware from '../../src/middleware/index';
5+
import { expressRateLimiter as expressRateLimitMiddleware } from '../../src/middleware/index';
66

77
// eslint-disable-next-line @typescript-eslint/no-var-requires
88
const RedisMock = require('ioredis-mock');

0 commit comments

Comments
 (0)