I 'd like to solve this
Assume I have something like this. ( please note that Open Doors or Close Doors is only an example ) 2 relatiionship and that my goal is to retrieve the maxId between this 2.
Assuming I have Surname Unique ( is an Example... )
@Query("MATCH (n:User:`$surname`) return n ")
Flux<UserEntity> customFindAll(@Param("surname") String surname);
<- This query doesnt work in spring-data otherwise was too easy of course....
I am trying to find all Relationship of a node - using a Query Like this in neo4j
MATCH (a:User)-[r]-(b) RETURN a, collect(r), collect(b) limit 10
But I am getting this Error ,could you please help me?:
This was the Query I was looking for : And works good ,
"UNWIND $createdNodes AS e
with e, MAX(n.ID) as maxId
Set e.ID = maxId + 1"
But the fact that I have to make a MATCH again in order to retrieve the USER with the new ID increme...
which is the correct APOC procedure to Trigger an ID and (Increment it +1) every time I call a create?
Assuming User has an ID - my idea is to increment using ID and not UUID, I know maybe is not performant but I have to.
The perfect thi...