Open dwitry opened 5 years ago
MATCH (p:person) WHERE id(p) in [0,1,3] RETURN p.name
marko
vadas
MATCH (p:person) WHERE id(p) in {ids} RETURN p.name
Full test case for org.opencypher.gremlin.queries.ParameterTest:
org.opencypher.gremlin.queries.ParameterTest
@Test public void matchWithin() { List<Map<String, Object>> results = submitAndGet( "MATCH (p:person) WHERE id(p) in {ids} RETURN p.name", singletonMap("ids", asList(0L, 1L, 3L)) ); assertThat(results) .extracting("p.name") .containsExactly("marko", "vadas"); }
MATCH (p:person) WHERE id(p) in [0,1,3] RETURN p.name
returnsmarko
,vadas
MATCH (p:person) WHERE id(p) in {ids} RETURN p.name
returns no recordsFull test case for
org.opencypher.gremlin.queries.ParameterTest
: