This project was bootstrapped with Create React App.
This project's using [email protected]
, @apollo/[email protected]
and [email protected]
.
It contains examples of fetching and updating data using apollo
hooks - useQuery
and useMutation
correspondingly. Local-only fields is used for data for which there is no need to be persisted remotely, instead of resolvers
(which were deprecated in @apollo/client@v3
) FieldPolicy
is used.
Idea for the project and it's server implemetation were taken from GraphQL Data in React with Apollo Client by Nik Graf.