File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,8 @@ import { parse } from 'graphql';
1515 * @param {TypeWeightObject } typeWeights
1616 * @param {string } complexityOption
1717 */
18- function getQueryTypeComplexity (
19- queryString : string ,
20- queryVariables : any ,
21- typeWeights : TypeWeightObject
22- ) : number {
18+ // TODO add queryVaribables parameter
19+ function getQueryTypeComplexity ( queryString : string , typeWeights : TypeWeightObject ) : number {
2320 throw Error ( 'getQueryComplexity is not implemented.' ) ;
2421}
2522
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ export function expressRateLimiter(
6262 const ip : string = req . ips [ 0 ] || req . ip ;
6363
6464 // FIXME: this will only work with type complexity
65- const queryComplexity = getQueryTypeComplexity ( query , variables , typeWeightObject ) ;
65+ // TODO: add query varibales parameter
66+ const queryComplexity = getQueryTypeComplexity ( query , typeWeightObject ) ;
6667
6768 try {
6869 // process the request and conditinoally respond to client with status code 429 o
You can’t perform that action at this time.
0 commit comments