Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cypher: Allow parameters for relationship types #340

Open
wfreeman opened this Issue · 4 comments

3 participants

@wfreeman

like

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

Handy for create too.

@wfreeman

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

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

That should work.

@wfreeman

It's more important for CREATE.

@michaelklishin

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.