Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions router/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ type SecurityConfiguration struct {
}

type ParserLimitsConfiguration struct {
ApproximateDepthLimit int `yaml:"approximate_depth_limit,omitempty" envDefault:"100"` // 0 means disabled
TotalFieldsLimit int `yaml:"total_fields_limit,omitempty" envDefault:"500"` // 0 means disabled
ApproximateDepthLimit int `yaml:"approximate_depth_limit,omitempty" envDefault:"200"` // 0 means disabled
TotalFieldsLimit int `yaml:"total_fields_limit,omitempty" envDefault:"3500"` // 0 means disabled
}

type QueryDepthConfiguration struct {
Expand Down
4 changes: 2 additions & 2 deletions router/pkg/config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2500,13 +2500,13 @@
"approximate_depth_limit": {
"type": "integer",
"description": "The approximate cumulative depth limit of a query, including fragments. Set to 0 to disable.",
"default": 100,
"default": 200,
"minimum": 0
},
"total_fields_limit": {
"type": "integer",
"description": "The total number of fields the parser will allow. Set to 0 to disable.",
"default": 500,
"default": 3500,
"minimum": 0
}
}
Expand Down
Loading