SubQueries in switch case #815
-
|
I want to run subqueries in switch case is it possible? or is there any workaround in a single query Example: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Like in AQL we can do something like this let name = a.prop1 != '' ? first(query1 ) : d.prop2 ? first (query2) : first(query3) |
Beta Was this translation helpful? Give feedback.
-
|
Hi there. I spoke to the Cypher team about this and they recommended I send you this link. Hope it helps! https://neo4j.com/developer/kb/conditional-cypher-execution/ |
Beta Was this translation helpful? Give feedback.
-
|
You can use for example |
Beta Was this translation helpful? Give feedback.
Hi there. I spoke to the Cypher team about this and they recommended I send you this link. Hope it helps!
https://neo4j.com/developer/kb/conditional-cypher-execution/