# `Flop.FieldInfo`
[🔗](https://github.com/woylie/flop/blob/0.26.4/lib/flop/field_info.ex#L1)

Defines a struct that holds the information about a schema field.

This struct is mainly for use by adapters.

# `t`

```elixir
@type t() :: %Flop.FieldInfo{
  ecto_type: Flop.Schema.ecto_type() | nil,
  extra: map(),
  operators: [Flop.Filter.op()] | nil
}
```

Contains the information about a schema field.

- `ecto_type` - The Ecto type of the field. This value is used to determine
  which operators can be used on the field and to determine how to cast
  filter values.
- `operators` - The allowed filter operators on this field. If `nil`, the
  allowed operators are determined based on the `ecto_type`. If set, the
  given operator list is used instead.
- `extra` - A map with additional configuration for the field. The contents
  depend on the specific adapter.

---

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