opencypher / cypher-for-gremlin

Cypher for Gremlin adds Cypher support to any Gremlin graph database.
Apache License 2.0
359 stars 48 forks source link

Within does not work with parameters #334

Open dwitry opened 5 years ago

dwitry commented 5 years ago

Full test case for 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");
    }