perf(gql): schema: use fast mode for req validation & limit req depth
This commit is contained in:
parent
c4331cd290
commit
d8b4f843cf
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ pub fn build_schema_with_data(data: GvaSchemaData, logger: bool) -> GvaSchema {
|
|||
mutations::MutationRoot::default(),
|
||||
subscriptions::SubscriptionRoot::default(),
|
||||
)
|
||||
.data(data);
|
||||
.data(data)
|
||||
.validation_mode(async_graphql::ValidationMode::Fast)
|
||||
.limit_depth(10);
|
||||
if logger {
|
||||
builder = builder.extension(async_graphql::extensions::Logger);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue