Hi, I would like get only nodes and edges between ‘pl’ cities and I get it but with the rest of pl cities that have no edge to other cities (because they’re from other countries).
My query looks like:
{
f(func: has(ToCity))
@filter(eq(country,"PL"))
{
city
country
ToCity @filter(eq(country,"PL"))
{
city
country
}
Distance
}
}
JSON looks like this:
"data": {
"f": [
{
"city_ascii": "Gdansk",
"country": "Poland",
"Distance": 7000
},
{
"city_ascii": "Poznan",
"country": "Poland",
"Distance": 8654
},
{
"city_ascii": "Torun",
"country": "Poland",
"Distance": 7037
},
{
"city_ascii": "Lodz",
"country": "Poland",
"ToCity": {
"city_ascii": "Poznan",
"country": "Poland"
},
(...)
I would like last data (with “ToCity”) edge only.
Thanks