Query E End Up With Multi Conditions

Hi

  • Info

I want to find E from V, the sql like:

MATCH {class:Concept, as:nodes, where:(kngraphId = 'GR0000000000855')}.bothE(){as:edges, where:($matched.nodes != $currentMatch),maxDepth:1,optional:true}  RETURN distinct nodes,edges:{in as source,out as target,name,@class as label}
  • Question

I want to end up with depth and other conditions like otherV’name. but now i can only end up with depth.in other words, i want to find the edge from two vertexs that have be known . what should i do?

this is what i write for it and the name condition is what i want to add:

MATCH {class:Concept, as:nodes, where:(kngraphId = 'GR0000000000855' and name = '运奶')}.bothE(){as:edges}.bothV(){as:others, where:($matched.nodes != $currentMatch and  $currentMatch = '奶厂'),maxDepth:1,optional:true}  RETURN distinct nodes,edges:{in as source,out as target,name,@class as label} limit -1
  • Result

but i find it is not correct ,because i do get what should be

52HZ

Thanks

Hi

oh, I know how to do.

52HZ

Thanks