yesodweb/persistent — pull request #322 by wuzzeb (2014-11-16 23:32:16+00:00)
Title: Add nestAnyEq filter function to allow testing array membership for nested objects

This allows using anyEq on something like

```
Foo
lst [Text]
Bar
foo Foo
```

Then can query like

```
BarFoo &->. FooLst `nestAnyEq` "Hello World"
```

I also would like to add a function to help filtering on a member of a pair. Persistent has a PersistField instance of (,) which turns into a list, and mongo queries can access each element of the list using something like `field.0` or `field.1`. But I am not sure what name for this operator. Have separate fst/snd? Or something like "BarFoo &->. FooLst `tuple` First `nestEq` "Hello"