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

redisgraph do not support foreach and i need use "case when then" with foreach.What do you suggest instead? #64

Open
ebrahimtorabi opened this issue Jan 24, 2022 · 2 comments

Comments

@ebrahimtorabi
Copy link

No description provided.

@gkorland
Copy link
Contributor

@ebrahimtorabi can you please share a sample query you would like to use foreach with?

@ebrahimtorabi
Copy link
Author

ebrahimtorabi commented Jan 25, 2022

thanks.
i need create or merge conditionally
for example:

FOREACH(ignoreMe IN CASE WHEN 'y' THEN [1] ELSE [] END | 
    MERGE (u)-[r2:STAGE {startdate:20141225, enddate:'99999999', status:'InProgress'}]->(b2 {fork:'fail'})
)
FOREACH(ignoreMe IN CASE WHEN NOT 'y' THEN [1] ELSE [] END | 
    MERGE (u)-[r2:STAGE {startdate:20141225, enddate:'99999999', status:'InProgress'}]->(b2)
)

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

No branches or pull requests

2 participants