# LibTmux.Snapshot.require_field!/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/snapshot.ex#L257
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-snapshot-require_field-bang-3/

```
require_field!(snapshot, entity, field)
@spec require_field!(
        t(),
        LibTmux.Schema.entity_selector(),
        atom()
      ) :: :ok
```

Requires a loaded field over the captured entity domain before evaluation.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `snapshot` (`t()`)
- `entity` (`LibTmux.Schema.entity_selector()`)
- `field` (`atom()`)
