Hi,

I think I found a problem - it looks that Cypher cannot substitute relationship type in the MATCH clause with external parameters passed in format {param} like the following:

START n1=node({self}) MATCH n1-[rel:{type}]->n2 RETURN n2

The following code which refers to {type} parameter generates an exception:

Hashtable<String, Object> params = new Hashtable<String, Object>();
params.put("res", nodeId);
params.put("type", type);
String cypherQuery = "START n=node({res}) MATCH n-[rel:{type}]->result RETURN rel";
Result<Map<String, Object>> rows = template.query(cypherQuery, params);


the exception:
Error executing statement START n=node({res}) MATCH n-[rel:{type}]->result RETURN rel; nested exception is string matching regex ``(``|[^`])*`' expected but `{' found

at org.springframework.data.neo4j.support.query.Cyphe rQueryEngine.parseAndExecuteQuery(CypherQueryEngin e.java:67)
at org.springframework.data.neo4j.support.query.Cyphe rQueryEngine.query(CypherQueryEngine.java:53)
... 39 more
Caused by: string matching regex ``(``|[^`])*`' expected but `{' found

Is it a bug or I am doing something wrong?