+1 vote
in Databases by (56.8k points)

It seems that Neo4j does not support LIKE clause. When I run the following query, it returns the syntax error. Is there any equivalent of the LIKE clause in Neo4j?

MATCH (d:Disease) WHERE d.node_label LIKE '%Parkinson%' RETURN d;

1 Answer

+2 votes
by (351k points)
selected by
 
Best answer

You can use the CONTAINS clause instead of the LIKE clause for the above query.

Here is the cypher query with the CONTAINS clause:

MATCH (d:Disease) WHERE d.node_label CONTAINS 'Parkinson' RETURN d;

Related questions

+3 votes
1 answer
+1 vote
1 answer
+1 vote
1 answer
asked Jul 13, 2023 in Databases by phpuser (56.8k points)

...