Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query parameter insertion ambiguity #544

Closed
LWprogramming opened this issue Jul 2, 2019 · 4 comments
Closed

Query parameter insertion ambiguity #544

LWprogramming opened this issue Jul 2, 2019 · 4 comments
Assignees

Comments

@LWprogramming
Copy link

LWprogramming commented Jul 2, 2019

I'd like to insert parameters into my Cypher queries. Is there a way to do this in RedisGraph?

For instance, this query has parameters

MATCH (Foo:Bar)
WHERE Foo.name = $name
RETURN Foo

where name is a parameter, say {'name': 'hello'}.

Does RedisGraph support this? I didn't find any documentation of this, including how to set a parameter.

Using redis-cli to run a command like GRAPH.QUERY animals 'MATCH(n) RETURN $x' gives an error saying "x is not defined."

I'm looking for the equivalent of :params name: 'hello' in the Neo4j browser.

@swilly22
Copy link
Collaborator

swilly22 commented Jul 3, 2019

Hi @LWprogramming,
Sorry but currently RedisGraph doesn't supports templated queries,
the plan is to start implementing this right after RedisGraph 2.0 is released (early August)

@LWprogramming
Copy link
Author

Hi @swilly22,
Thanks for the info-- does that mean templated queries will be supported in early August, or is that when you expect work to begin on templated queries?

@swilly22
Copy link
Collaborator

swilly22 commented Jul 3, 2019

Expecting to start working on this feature.

@LWprogramming
Copy link
Author

Got it, thanks!

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

No branches or pull requests

2 participants