strawberry.federation.type

Signature:

def type(
cls: T | None = None,
name: str | None = None,
description: str | None = None,
directives: Iterable[object] = (),
authenticated: bool = False,
extend: bool = False,
inaccessible: bool = UNSET,
keys: Iterable[Key | str] = (),
policy: List[List[str]] | None = None,
requires_scopes: List[List[str]] | None = None,
shareable: bool = False,
tags: Iterable[str] = (),
) -> :
...

Parameters:

  1. name:

    Type
    str | None
    Default
    None
  2. description:

    Type
    str | None
    Default
    None
  3. directives:

    Type
    Iterable[object]
    Default
    ()
  4. authenticated:

    Type
    bool
    Default
    False
  5. extend:

    Type
    bool
    Default
    False
  6. inaccessible:

    Type
    bool
    Default
    UNSET
  7. keys:

    Type
    Iterable[Key | str]
    Default
    ()
  8. policy:

    Type
    List[List[str]] | None
    Default
    None
  9. requires_scopes:

    Type
    List[List[str]] | None
    Default
    None
  10. shareable:

    Type
    bool
    Default
    False
  11. tags:

    Type
    Iterable[str]
    Default
    ()