What version of Dgraph are you using ?
This is a known issue and was fixed in fix(GraphQL): fix multiple alias in query by minhaj-shakeel · Pull Request #6940 · dgraph-io/dgraph · GitHub .
Did you try running the same query in the recently released 20.11 version. It should not return the same result for alltags and mytags in 20.11 .