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

confuse about CONSTRUCT and UPDATE #389

Open
linsimiao opened this issue Dec 26, 2019 · 1 comment
Open

confuse about CONSTRUCT and UPDATE #389

linsimiao opened this issue Dec 26, 2019 · 1 comment

Comments

@linsimiao
Copy link

hi all, I have read your documentation. I found it easy to mix CONSTRUCT with UPDATE. I wonder whether the following cyphers mean the same.

FROM xxx match (a:Person) UPDATE GRAPH merge (b:Student{name:a.name})

and

FROM xxx match (a:Person) CONSTRUCT merge (b:Student{name:a.name})

suppose the working graph is yyy, is it both two cyphers will lead to create nodes with a label Student in the graph yyy.

Thanks for your reply.

@hvub
Copy link
Contributor

hvub commented Mar 13, 2020

I think FROM xxx match (a:Person) UPDATE GRAPH merge (b:Student{name:a.name}) is not a valid statement. In UPDATE GRAPH you only get to do DELETE, SET, REMOVE on prior matched variables. With which software, you intend to use this functionality?

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