Fetch Server Data and Client-side State in One Query using React Apollo + GraphQL

Share this video with your friends

Send Tweet

In this lesson we look at how the Apollo @client directive can be used to fetch client-side state along with server data with one query. I also show how to update the client-side state using a mutation connected to a button.

Additional Resources Apollo Client 2.0