Skip to content

Commit

Permalink
add example for delete vertex with edge (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 authored Aug 18, 2022
1 parent f96b44f commit 6b80a2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ object NebulaSparkWriterExample {
.withUser("root")
.withPasswd("nebula")
.withWriteMode(WriteMode.DELETE)
// config deleteEdge true, means delete related edges when delete vertex
// refer https://docs.nebula-graph.com.cn/master/3.ngql-guide/12.vertex-statements/4.delete-vertex/#_1
.withDeleteEdge(true)
.build()
df.write.nebula(config, nebulaWriteVertexConfig).writeVertices()
}
Expand Down

0 comments on commit 6b80a2f

Please sign in to comment.