# `PgRest.AST.Condition`
[🔗](https://github.com/agoodway/pgrest/blob/v0.2.0/lib/pg_rest/ast.ex#L17)

A single `field op value` filter.

`value` is a binary for scalar operators, a list of binaries for `in` and for
`any`/`all` quantified array literals, one of `:null | :not_null | true | false |
:unknown` for `is`, and the raw literal (`{1,2}`, `[1,5)`, JSON) for `cs`, `cd`
and `ov`.

# `op`

```elixir
@type op() ::
  :eq
  | :neq
  | :gt
  | :gte
  | :lt
  | :lte
  | :like
  | :ilike
  | :match
  | :imatch
  | :in
  | :is
  | :isdistinct
  | :fts
  | :plfts
  | :phfts
  | :wfts
  | :cs
  | :cd
  | :ov
  | :sl
  | :sr
  | :nxr
  | :nxl
  | :adj
```

# `t`

```elixir
@type t() :: %PgRest.AST.Condition{
  field: PgRest.AST.Field.t(),
  fts_config: String.t() | nil,
  modifier: nil | :any | :all,
  negate: boolean(),
  op: op(),
  value: value()
}
```

# `value`

```elixir
@type value() ::
  String.t() | [String.t()] | :null | :not_null | true | false | :unknown
```

---

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