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.
Yea, but I also need to expand the non-typed fields. The error in question doesn’t make any sense since the first expand(_all_) won’t expand any of the typed fields. It makes sense to use another expand with filters for it.