How to query one-to-many relationships

The query statement is as follows
{
people(func: eq(ADMIN.USER.ID, 1)) {
ADMIN.USER.ID
ADMIN.USER.USERNAME
USER_ROLE{
ADMIN.ROLE.ID
ADMIN.ROLE.ROLE_NAME
}
}
}
}

The actual data is that there are two roles associated with user 1, but only one role is retrieved

Please, share your Type definition schema and a basic structures (in JSON for example) so we can have an idea of the relations. Depending of your structure we would use reverse index https://dgraph.io/docs/query-language/#reverse-edges or other approaches.