GraphQL query for fetching user's emails with user:email scope

I want to get the user’s emails (GET /user/emails on REST) from the GraphQL API.
I did not find any documentation about this, how can I do it?

Note: I want to get all of the user’s emails connected on GitHub and not just the publicly visible one.

1 Like

Unfortunately every REST v3 API does not necessarily have an equivalent GraphQL feature.

In this example you are stuck with users#emails from REST v3 API as the only way of retrieving this information unless in future it is added GraphQL.