mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
Closes #17288: Limit the number of aliases within a GraphQL API request to 10
This commit is contained in:
parent
b4dd57f3c7
commit
f44fb80aa5
@ -1,5 +1,6 @@
|
||||
import strawberry
|
||||
from strawberry_django.optimizer import DjangoOptimizerExtension
|
||||
from strawberry.extensions import MaxAliasesLimiter
|
||||
from strawberry.schema.config import StrawberryConfig
|
||||
|
||||
from circuits.graphql.schema import CircuitsQuery
|
||||
@ -37,5 +38,6 @@ schema = strawberry.Schema(
|
||||
config=StrawberryConfig(auto_camel_case=False),
|
||||
extensions=[
|
||||
DjangoOptimizerExtension,
|
||||
MaxAliasesLimiter(max_alias_count=10),
|
||||
]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user