Closed yackermann closed 3 months ago
Kudos, no new issues were introduced!
0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This breaks tests, and especially breaks the fetch_relations with filter() applied (see test_match_api.py::test_fetch_relations). In this example, it creates queries like - notice how the variable name for the first node of the MATCH is different than the one in the WHERE clause, because it's creating a random suffix for both :
MATCH (supplier_1ab2:Supplier)-[r1:COFFEE_SUPPLIERS]->(coffee_coffees_1:Coffee)-[r2:COFFEE_SPECIES]->(species_species_1:Species) WHERE supplier_23te.name = $supplier_name_1 RETURN supplier, coffee_coffees_1, r1, species_species_1, r2
The issue I had is that my Node class was name
Case
. When label is generated it is using lower case class name, so it was usingcase
as variablethat line
MATCH (case)
is interpreted by CQL as MATCH (CASE).So I've added random prefix to the variables and labels to prevent accidental reserve words panics in future
This is a result query: