neo4jrb/neo4j — pull request #628 by subvertallchris (2014-12-06 23:27:00+00:00)
Title: match_to supports arrays!

I've found myself wanting to use an array in `match_to` a few times, so this lets us do that. It accepts an array of nodes or IDs.

While not always the most efficient way of doing things, it lets you do things like this:
```ruby
current_user.shows(:s, :r).rel_where(auth: 99).bands.match_to(other_user.bands.to_a).pluck(:s)
```
n+1 query but it is the equivalent of "Return current user's shows where their auth level is 99 and the bands playing include any of this other user's bands." Could be done with a single query but it would be a lot longer and require Core::Query. When you just want it done quickly, this will get you there.