You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem. I have a value of only one property and I ought to update the others. Can I perform LOOKUP and UPDATE as compound queries? So I need to seek vertex ID by property (with LOOKUP statement, right?) and then apply updates with the UPDATE statement which requires VID.
In other words, I'm trying to rewrite Cypher for Neoj4 to nGQL for NebulaGraph.
MATCH (v:Host{fqdn:"example.mymedia.su"}) SETv.ip="192.0.2.1"
How do I rewrite this with nGQL? Is this possible in a single query?
I tried the following but it's a syntax error near `UPDATE'.
LOOKUP ON `Host` WHERE `Host`.fqdn == "example.mymedia.su" YIELD id(vertex) AS vid | \
UPDATE VERTEX ON `Host` $-.vid SET ip = "192.0.2.1"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem. I have a value of only one property and I ought to update the others. Can I perform LOOKUP and UPDATE as compound queries? So I need to seek vertex ID by property (with LOOKUP statement, right?) and then apply updates with the UPDATE statement which requires VID.
In other words, I'm trying to rewrite Cypher for Neoj4 to nGQL for NebulaGraph.
How do I rewrite this with nGQL? Is this possible in a single query?
I tried the following but it's a syntax error near `UPDATE'.
Beta Was this translation helpful? Give feedback.
All reactions