I was trying the make this query work using params with no luck. I was always getting the same error.
expected either node or relationship here
"start n={start} match n-[r:{rel}]-() return n, n.name, r, r.since"
^
Then, I removed the {start} param and I used a backtip (`) for the relationship and it worked like a charm.
start n=node(*) match n-[r:`{rel}`]-() return n, n.name, r, r.since
So, what’s the proper way to use params and where can I use them in a query?
Just in case, backtip the {start} doesn’t work either. The next request doesn’t work either.
POST /db/data/cypher {"query": "start n=node({start}) match n-[r:`{rel}`]-() return n, n.name, r, r.since", "params": {"start": "*", "rel": "l353456"}}
I’m using 1.9M01
Backticking
start(because start is a keyword) would look like thisTested on the Neo4j Http console.