How to use list of predicates inside query Dgraph

In my query i have two part first one to get list of predicates (string list ) and the second part it I want to use this list as predicates but I got error “Value variables not supported for predicate with list type.”

and that’s my queries :
{
var(func: eq(evt_id,“TRACKING”)) {
attributs as evt_attributs
}
data(func: eq(evt_name,“tracking”)) {
uid,
val(attributs),
evt_timestamp
}
}

Two issues here

1 - You can’t use variables within two different entities body.
2 - Val func will not expand list type.

If it is not supported and you can’t pull predicates from other entities, it is not possible to do what you wanna do.

1 Like