December 2019
Intermediate to advanced
474 pages
10h 3m
English
The local GraphQL server that is running on your machine supports both a query and a subscription so that you can return a conversation from a specific user. Where the query will return the full conversation, the subscription will return any new message that may have been sent or received in that conversation. At the moment, the Conversation screen is only sending a document with the query that will return the conversation with a user if you tap on any of the conversations displayed on the Conversations screen.
Subscriptions can be added to your application in multiple ways; using the Subscription component from react-apollo is the most simple one. But since you're already retrieving the conversation using ...