cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Querying nodes using array property

Tom78
Node

I have a property on the node which is stored as array of strings. But when I use this field to find the node, it's not returning any results. What am I doing wrong?

 
Below is the node:
 
MATCH (n:Product)
WHERE
n.id_product = 8
RETURN
n.keyterms
 
<result>
["financial tool", "personal finance"]
 
I am trying to find nodes using the below:
 
MATCH (n:Product)
WHERE
["financial tool"] in n.keyterms
RETURN
n.keyterms
 
<no results>
 

 

1 REPLY 1

ameyasoft
Graph Maven
Try this:

MATCH (n:Product)
WHERE
"finacial tool" in n.keyterms
RETURN
n.keyterms