vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.88k stars 1.21k forks source link

Does "GET SUBGRAPH" support filtering vertices by vid? #5962

Open strcpy-s opened 1 month ago

strcpy-s commented 1 month ago

for example, I want to find a subgraph for vid "player-001" and the nGQL language may be like this:

GET SUBGRAPH with prop {step_count} steps FROM "plyer-001" YIELD VERTICES AS nodes, EDGES AS relationships; 

However, this nGQL may return vertices of the same type as "player-001"(e.g. "player-002"), which I do not need. There is only a solution to filter vertices by prop value in nebula forum: 请问GET SUBGRAPH语句:是否支持对节点/边的类型 或 属性过过滤呢?

I know I can do this by using using "GO" statement, but the return format of "GO" is not same as that of "GET SUBGRAPH". So can I use "GET SUBGRAPH" directly to achive the above requirements?