Skip to content
This repository

Cypher: Allow parameters for relationship types #340

wfreeman opened this Issue December 02, 2012 · 4 comments

3 participants

Wes Freeman Chris Leishman Michael Klishin
Wes Freeman


  query:"START n=node(1)
         MATCH n-[r:{type}]->()
         RETURN n,r;",

Handy for create too.

Wes Freeman

I think this would be useful, even if the query couldn't be cached. Could there be a mechanism for it?

Chris Leishman
MATCH (a)-[r]->(b)
WHERE type(r) = {param}

That should work.

Wes Freeman

It's more important for CREATE.

Michael Klishin

It's primarily for CREATE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.