# `Grephql.Types.Enum`
[🔗](https://github.com/fahchen/grephql/blob/v0.10.1/lib/grephql/types/enum.ex#L1)

Parameterized Ecto Type for GraphQL enum types.

Converts between GraphQL enum strings (e.g., `"ACTIVE"`, `"active"`)
and downcased Elixir atoms (e.g., `:active`). Supports case-insensitive
matching on cast/load — `"FOO"`, `"Foo"`, and `"foo"` all resolve to
the same atom.

## Usage in schema

    field :role, Grephql.Types.Enum, values: ["ADMIN", "USER", "GUEST"]

Ecto calls `init/1` automatically with the field options.

# `t`

```elixir
@type t() :: atom()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
