ArrayField equals queries
You might try using `Param` or `Passthrough` around your list, e.g.

```python
.where(MyModel.field == Passthrough(['element', 'another']))
``` In peewee 3.x, for what it's worth, it's not necessary to use a wrapper around the value, you can express the equality as you'd expect:

```python
query = SomeModel.get(SomeModel.array_field == ['foo', 'bar', 'baz'])
``` > ```python
> .where(MyModel.field == Passthrough(['element', 'another']))
> ```

This indeed does the trick, interesting. I was using `Clause` as a workaround, but `Passthrough`/`Param` (both work) makes it a bit cleaner and safer.

Will definitively upgrade to 3 soon. Thanks. Actually, maybe I could ask in which (other) cases do we need `Param`/`Passthrough`? Docs don't mention them.

Or are these completely removed in 3.x? **Edit:** seems so as they're not found in ``peewee.py`` anymore. Removed in 3.x. For 2.x you'll want to use it in places where you're passing a non-scalar type (like a list or something) to a database driver that understands those types...i.e., psycopg2 understands lists and dicts.
How do you query [ArrayField](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#ArrayField) for equal list comparison like:

```sql
... WHERE field = ARRAY['element', 'another'];
```

`.where(MyModel.field == ['element', 'another'])` produces:

```sql
WHERE (\"field\" = (ARRAY['e', 'l', 'e', 'm', 'e', 'n', 't']::TEXT[], ARRAY['a', 'n', 'o', 't', 'h', 'e', 'r']::TEXT[]))
```

(Still using the oldish peewee `2.10.2`, sorry!)