enum
Registers the enum in the GraphQL type system.
If name is passed, the name of the GraphQL type will be the value passed of name instead of the Enum class name.
Signature:
Parameters:
-
_cls:
- Type
-
EnumType | None
- Default
-
None
-
name:
- Default
-
None
-
description:
- Default
-
None
-
directives:
- Default
-
()
-
authenticated:
- Type
-
bool
- Default
-
False
-
inaccessible:
- Type
-
bool
- Default
-
False
-
policy:
- Type
-
List[List[str]] | None
- Default
-
None
-
requires_scopes:
- Type
-
List[List[str]] | None
- Default
-
None
-
tags:
- Type
-
Iterable[str] | None
- Default
-
()