SQL - MOVE VERTEX
Moves one or more vertices into another type or bucket.
MOVE VERTEX <source> TO <TYPE|BUCKET>:<destination> [SET|REMOVE <field-name> = <field-value>[,]*]|[CONTENT|MERGE <JSON>] [BATCH <number>]
-
<source>the vertex (RID) or vertices (Array of RIDs) to be moved. -
<TYPE|BUCKET>determines if a type or bucket is the target. -
<destination>the target type or bucket of the moved vertex or vertices. -
<number>size of vertices moved at once. Using-1moves all vertices at once.
| This is command is similar to the UPDATE command. |
Examples
MOVE VERTEX #4:1 TO Type:MyType
MOVE VERTEX [#4:16,#4:20,#4:24] TO BUCKET:MyBucket
MOVE VERTEX (SELECT FROM User) TO TYPE:NewUsers BATCH 4