-
- Nuxt module playground!
-
+
+
+
-
-
diff --git a/playground/composables/useUrqlClient.ts b/playground/composables/useUrqlClient.ts
new file mode 100644
index 0000000..d0501a4
--- /dev/null
+++ b/playground/composables/useUrqlClient.ts
@@ -0,0 +1,29 @@
+import type { DocumentNode } from 'graphql'
+import { provideClient, useQuery } from '@urql/vue'
+import type { AnyVariables } from '@urql/vue'
+
+export const URQL_CLIENT_NUXT_APP_KEY = 'urql'
+
+export function useUrqlClient() {
+ return useNuxtApp()[`$${URQL_CLIENT_NUXT_APP_KEY}`]
+}
+
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+export function useUrqlQuery