We startup project with Apollo Client as the fronted data management library with a promise that in the short future we will have Graphql backend but for now you have to connect with standard REST. After 1 year there is no Graphql backend, classical business promises... so we switched to React query.
Pros.:- you do not have to worry about merging objects
- you do not have to worry about writing custom resolvers
- you do not have to worry about writing
__typename
in custom resolvers - you do not have to worry about schema description in
InMemoryCache
- you do not have to worry about describing graphql schema
- you need to writing fetch keys
- you need to keep in mind fetch keys similarities
4 upvotes·27.7K views