subvertallchris
subvertallchris

Reputation: 5482

Neo4j cypher return all nodes where property matches any array element

This should be easy, I am overlooking something. I want to match a group of nodes and return all where the ID matches any of a group of given IDs. Something like this:

MATCH (b:`Band`)-[r:`something`]->(u:`SomethingElse`)
WHERE b.uuid IN ['1', '2', '3']
RETURN b

That returns the first node that matches. I want all that match. What am I missing?

Upvotes: 13

Views: 7782

Answers (1)

subvertallchris
subvertallchris

Reputation: 5482

This worked. Leaving this up in case anyone else ever wants to know how to do it.

Upvotes: 8

Related Questions