Skip to content

Commit

Permalink
docs: update examples for with prop clause
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed Nov 23, 2023
1 parent 04090c8 commit 2a2a298
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ object NebulaSparkReaderExample {
.withReturnCols(List("degree"))
// please make sure your ngql statement result is edge, connector does not check the statement.
// other examples of supported nGQL:
// - GET SUBGRAPH 3 STEPS FROM 2 YIELD EDGES AS relationship;
// - FIND ALL PATH FROM 2 TO 1 OVER friend YIELD path AS p;
// - GET SUBGRAPH WITH PROP 3 STEPS FROM 2 YIELD EDGES AS relationships;
// - FIND ALL PATH WITH PROP FROM 2 TO 4 OVER friend YIELD path AS p;
.withNgql("match (v)-[e:friend]-(v2) return e")
.build()
val edge = spark.read.nebula(config, nebulaReadConfig).loadEdgesToDfByNgql()
Expand Down

0 comments on commit 2a2a298

Please sign in to comment.