Expand not allowed multiple times in same sub-query

The closest you can get is to either use expand(_all_){uid} to get all predicates and all edges with the UID included. Or expand(_all_)@filter(type(type1) OR type(type2)){uid} to get only the edges of specific types, but this filters out value predicates.

Read more here: https://dgraph.io/docs/query-language/expand-predicates/#filtering-during-expand