Support patterns in cypher `has(...)`

And add documentation for the `has(...)` function.