Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
strcpy-s opened this issue Oct 20, 2024 · 0 comments
Open

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

strcpy-s opened this issue Oct 20, 2024 · 0 comments

Comments

@strcpy-s
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant