Skip to content

Commit 059c1a6

Browse files
committed
1 parent 7d362ae commit 059c1a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Options/Definitions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,13 +663,13 @@ module.exports.RateLimitOptions = {
663663
};
664664
module.exports.RequestComplexityOptions = {
665665
graphQLDepth: {
666-
env: 'PARSE_SERVER_REQUEST_COMPLEXITY_GRAPH_QLDEPTH',
666+
env: 'PARSE_SERVER_REQUEST_COMPLEXITY_GRAPHQL_DEPTH',
667667
help: 'Maximum depth of GraphQL field selections. Set to `-1` to disable. Default is `50`.',
668668
action: parsers.numberParser('graphQLDepth'),
669669
default: 50,
670670
},
671671
graphQLFields: {
672-
env: 'PARSE_SERVER_REQUEST_COMPLEXITY_GRAPH_QLFIELDS',
672+
env: 'PARSE_SERVER_REQUEST_COMPLEXITY_GRAPHQL_FIELDS',
673673
help: 'Maximum number of field selections in a GraphQL query. Set to `-1` to disable. Default is `200`.',
674674
action: parsers.numberParser('graphQLFields'),
675675
default: 200,

src/Options/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,11 @@ export interface RequestComplexityOptions {
426426
:DEFAULT: 5 */
427427
subqueryDepth: ?number;
428428
/* Maximum depth of GraphQL field selections. Set to `-1` to disable. Default is `50`.
429+
:ENV: PARSE_SERVER_REQUEST_COMPLEXITY_GRAPHQL_DEPTH
429430
:DEFAULT: 50 */
430431
graphQLDepth: ?number;
431432
/* Maximum number of field selections in a GraphQL query. Set to `-1` to disable. Default is `200`.
433+
:ENV: PARSE_SERVER_REQUEST_COMPLEXITY_GRAPHQL_FIELDS
432434
:DEFAULT: 200 */
433435
graphQLFields: ?number;
434436
}

0 commit comments

Comments
 (0)