MaxAliasesLimiter

Add a validator to limit the number of aliases used.

Example:

import strawberry
from strawberry.extensions import MaxAliasesLimiter
schema = strawberry.Schema(Query, extensions=[MaxAliasesLimiter(max_alias_count=15)])

Constructor:

Initialize the MaxAliasesLimiter.

Signature:

def __init__(self, max_alias_count: int) -> None:
...

Parameters:

  1. max_alias_count:

    The maximum number of aliases allowed in a GraphQL document.

    Type
    int