Details
-
Story
-
Resolution: Unresolved
-
High
-
2.5.0
-
None
Description
Add a viewer field at the root, that returns the currently logged in User. It is a standard feature on GraphQL schemas. It is an equivalent of REST's /me resource.
It can be used by application developers to show informations about the currently logged in user, as a UserContent. It should give access to User Groups as well. Usage example with the Apollo client: https://reactgo.com/graphql-react-apollo-client.
{ viewer { user_account { login email } firstname lastname image { variation(identifier: avatar) { uri } } } }