-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Issue with where condition filtering not taking effect. #5835
Comments
因为你这里指定了 tag 的类型是 friend 自然是结果只会出来 friend 相关的。你的 friend、workmate、boss 是不是都是一个点类型(tag)?如果是的话,你可以试试这个条件过滤改成这个
看看可以不 |
这三个点不是一个类型的。 |
不不,我才疏学浅。问问大佬们咋看 @Salieri-004 这题你会么? |
GET SUBGRAPH不支持or的过滤条件,match可以支持类似的写法,比如 |
谢谢,了解了~ |
这个有个缺点,图模式指定了起点,如果我只能确定第二跳的条件,然后第一跳可能有也可能没有,这怎么办? |
可以参考https://docs.nebula-graph.com.cn/3.6.0/3.ngql-guide/7.general-query-statements/2.match/ 。 |
可能我没表述清楚。 |
找到方法了,可以用optional match做补充 |
这是查询语句,我想查A这个人通过relationship这个关系上5步以内的联系人。
我的vertex不仅有friend,还有workmate、boss。就是用relationship这个edgetype连接了friend、workmate、boss这三种vertex。
问题是:
上面那个语句的返回结果,只有friend,没有boss或者workmate。我感觉是$$.friend.type == "type"这个条件导致返回结果必须满足friend的type为type,boss和workmate因为没有type这个字段,就没有返回。
如何能让boss和workmate出现在返回值里面?
The text was updated successfully, but these errors were encountered: