This is an ideomatic place to use a tacit attribute likes_ to say “Give me names of persons that like pizza” without returning the likes value “pizza”
over and over again. Then we get a nice list of only the pizza likers:

Person.name.likes_("pizza").get === List(
"Fred", "Ben"
)

Note that since we get an arity-1 result back it is simply a list of those values.

We can apply OR-logic to find a selection of alternatives

Person.age(40 or 41 or 42)
// .. same as
Person.age(40, 41, 42)
// .. same as
Person.age(List(40, 41, 42))

Fulltext search

If we add the fulltextSearch option to a String attribute definition Datomic will index the text strings saved so that we can do
fulltext searches across all values. We could for instance search for Community names containing the word “Town” in their name:

Community.name.contains("Town")

Note that only full words are considered, so “Tow” won’t match. Searches are case-insensitive.