Cypher: Allow parameters for relationship types #340

Open
freeeve opened this Issue Dec 3, 2012 · 6 comments

Comments

Projects
None yet
4 participants
Contributor

freeeve commented Dec 3, 2012

like

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

Handy for create too.

Contributor

freeeve commented Oct 8, 2013

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

Contributor

cleishm commented Oct 8, 2013

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

That should work.

Contributor

freeeve commented Oct 8, 2013

It's more important for CREATE.

Contributor

michaelklishin commented Oct 8, 2013

It's primarily for CREATE.

any news on this?

I need it for the CREATE too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment