https://nebula-graph.io logo
Title
s

Sandeep

10/02/2022, 8:27 PM
One more query. I'm using GO statement to retrieve 2nd degree vertices and the result set contains vertices mapped with either of the two tags (Tag_A or Tag_B). In such a case, how do I apply filter/condition to print only the vertices of Tag_A type? GO 2 STEPS FROM "123456" OVER * WHERE tags($$)=="Tag_A" YIELD id($$); I tried the above query but couldn't achieve the desired result
j

Jingchun

10/03/2022, 3:29 PM
tags() returns a list. try: WHERE "Tag_A" in tags($$)
👍 2
w

wey

10/04/2022, 1:33 AM
As jingchun suggested tags(foo) returns a list of strings.
👍 1
s

Sandeep

10/04/2022, 3:10 PM
Thank you so much both!