Being new to Cypher Queries on Spring Data Graph, this may be quite trivial...
I am looking for what would be the Cypher query to fetch all nodes that have a given value for a couple of properties. So, what would be ???
in the @Query annotation for the following:
@Query(???)
List<MyObject> findByProperty1AndProperty2(String property1, String property2)
EDIT: So, I managed to use the derived queries by adding Cypher dependencies (as suggested by Michael below). But I seem to be getting the below error:
string matching regex (?i)\Qreturn\E' expected but ,' found
I think this is because it seems to be creating a query like :
start n=node:__types__(className="com.example.MyObject") where n.property1 = {0}, n.property2 = {1} return n
rather than
start n=node:__types__(className="com.example.MyObject") where n.property1 = {0} and n.property2 = {1} return n
(Note the ,
instead of and
in the query)
Thanks in advance.