File tree Expand file tree Collapse file tree 3 files changed +269
-253
lines changed Expand file tree Collapse file tree 3 files changed +269
-253
lines changed Original file line number Diff line number Diff 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
5155export 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
372376export interface RateLimitOptions {
You can’t perform that action at this time.
0 commit comments