reactjs – How to deal with both GraphQL Queries and REST API Calls in a React Application?
BE application on our project is very bad. It contains both RESTAPIs and GraphQL queries, so I want to ask is it good to have both react-query and apollo-client on the FE app?
Or if not, can I install just apollo-client and use it for REST APIs like for GraphQL queries?
Or vice versa, can I use react-query for GraphQL queries like for REST APIs?
What are your recommendations and do you have same good setup and examples for the some of this 2 cases?
I tried to find the best solution on documentation pages, and on some articles but I couldn’t find something that looks good. Chat gpt also doesn’t help me so much…
Thank you in advance…
Read more here: Source link
