hi , I want query relationships of some vertices,ignoring the direction of edges. any suggestions? ( vertices [a,b]. result maybe like this: a->d->c<-f->b )

# Query relations with vertices

Hi @naiping123

Not sure I got it right, but to traverse edges ignoring the direction you can use `both()`

operator

eg.

```
MATCH
{class:Foo, as:a, where:(...)}.both(){as:d}.both(){as:c}.both(){as:b, where:(...)}
RETURN $patterns
```

I hope it helps

Thanks

Luigi

thanks a lot. I’ll try it.