| Hi all, I have a query: START n=node(4) MATCH(n)-[:friends]->(x) RETURN x My problem is that those friends being returned have a property attached to them called interests which is an array. What I need to do is take my single interest and see if it is located in the array, if so return those users. My best guess right now is: q = incoming interest parameter START n=node(4) MATCH(n)-[:friends]->(x) WHERE(x.interests.to_s =~ /(?i-mx:.*#{q}.*)/ RETURN x Any help would be appreciated. Thanks. Chris Bolton |
WHERE {q} in x.interests
Should do it.
--
--
| Thanks Andres and Michael. I appreciate your guys help. Chris Bolton @Iknewthisguy --- On Fri, 10/26/12, Andres Taylor <andres...@neotechnology.com> wrote: |
|