January 2019
Intermediate to advanced
460 pages
10h 33m
English
At the moment, all the API functions of our GraphQL server allow us to simulate the user by selecting the first available one from the database. As we have just introduced a full-fledged authentication, we can now access the user from the request context. This section quickly explains how to do this for the chat and message entities. We also implement a new query called currentUser, where we retrieve the logged-in user in our client.
Read now
Unlock full access