ingraph icon indicating copy to clipboard operation
ingraph copied to clipboard

Compile DML operators

Open szarnyasg opened this issue 7 years ago • 2 comments

  • [x] CREATE
  • [x] DELETE
  • [x] DETACH DELETE
  • [ ] REMOVE
  • [ ] SET
  • ~MERGE~

szarnyasg avatar May 30 '17 17:05 szarnyasg

Wow, SET has some depth to it. [Grammar] [Docs]

SET n.surname = 'Taylor'
SET n.name = NULL
SET at = pn // copies attribute sets
SET n.surname = $surname
SET n = $props
SET n :German
SET n :Swedish:Bossman // space can be omitted

(For the spaces, follow https://github.com/neo4j/neo4j-documentation/pull/124)

REMOVE is a bit simpler. [Grammar] [Docs]

REMOVE andres.age
REMOVE n:German
REMOVE n:German:Swedish

szarnyasg avatar Sep 17 '17 12:09 szarnyasg

The name Set is prone to clash with the Scala collection Set. I suggest we rename it to SetOp or something similar.

szarnyasg avatar Sep 17 '17 14:09 szarnyasg