We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c881439 commit d8f93bfCopy full SHA for d8f93bf
packages/docs/src/guide-composable/setup.md
@@ -92,7 +92,12 @@ Use `provideApolloClient` for a single default client:
92
```js
93
import { provideApolloClient } from "@vue/apollo-composable";
94
95
-provideApolloClient(apolloClient)
+const query = provideApolloClient(apolloClient)(() => useQuery(gql`
96
+ query hello {
97
+ hello
98
+ }
99
+`))
100
+const hello = computed(() => query.result.value?.hello ?? '')
101
```
102
103
Use `provideApolloClients` for multiple clients:
0 commit comments