Unable to populate data using useList with GraphQL in Refine – data remains undefined
I’m working on a React application using the Refine framework along with GraphQL. I’m trying to insert mock data into a component using the useList hook. The mock data should be fetched from a GraphQL resource (dealStages) that I learned about in a recent YouTube tutorial.
GraphQL and React: cursor pagination and fetchMore
So, I just wanted to make sure I was doing this correctly because it doesn’t feel right.
I have two graphqql queries in a component. I want second query to execute only after first query is executed and I get data from it. How to proceed?
I have two graphql queries first one is getUser and second one is getChatHistory. I want getChatHistory to execute only after getUser is executed and user details are fetched.