How can I filter a type that holds a specific predicate uid?

If you have a list of uids and you want to filter a list on entities having a relation (a predicate) to those uid, consider using uid_in function in a filter :
https://dgraph.io/docs/query-language/functions/#uid_in

function uid_in allows looking ahead along an edge to check that it leads to a particular UID.

2 Likes