Duration
2 min
Access
Pro
Transcript
Available

In order to use the useQuery composable to fetch data, you need to first import DefaultApolloClient from @vue/apollo-composable

Then in your createApp you need to provide the DefaultApolloClient to your app inside a setup function, then all of the child components will have access to it.