Skip to content

Commit 6d59d8f

Browse files
committed
feat: update options name
1 parent 18ff763 commit 6d59d8f

File tree

3 files changed

+269
-253
lines changed

3 files changed

+269
-253
lines changed

src/Options/docs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ type RequestKeywordDenylist = {
4343
key: string | any,
4444
value: any,
4545
};
46-
type QueryComplexityOptions = {
46+
type GraphQLQueryComplexityOptions = {
4747
depth: number,
4848
fields: number,
4949
};
50+
type IncludeComplexityOptions = {
51+
depth: number,
52+
count: number,
53+
};
5054

5155
export interface ParseServerOptions {
5256
/* Your Parse Application ID
@@ -358,15 +362,15 @@ export interface ParseServerOptions {
358362
* If both maxIncludeQueryComplexity and maxGraphQLQueryComplexity are provided, maxIncludeQueryComplexity values
359363
* must be lower than maxGraphQLQueryComplexity values to avoid validation conflicts.
360364
*/
361-
maxIncludeQueryComplexity: ?QueryComplexityOptions;
365+
maxIncludeQueryComplexity: ?IncludeComplexityOptions;
362366
/* Maximum query complexity for GraphQL queries. Controls depth and number of operations.
363367
* Format: { depth: number, fields: number }
364368
* - depth: Maximum depth of nested field selections
365369
* - fields: Maximum number of operations (queries/mutations) in a single request
366370
* If both maxIncludeQueryComplexity and maxGraphQLQueryComplexity are provided, maxIncludeQueryComplexity values
367371
* must be lower than maxGraphQLQueryComplexity values to avoid validation conflicts.
368372
*/
369-
maxGraphQLQueryComplexity: ?QueryComplexityOptions;
373+
maxGraphQLQueryComplexity: ?GraphQLQueryComplexityOptions;
370374
}
371375

372376
export interface RateLimitOptions {

0 commit comments

Comments
 (0)