Closed kuraiconnect closed 1 year ago
I am experiencing the same problem :(
I am experiencing the same problem :(
You can try use fetch like me. Not cool but work 😅
I think that problem with that result is a ref. And vue can not read so deep object like this
@Baroshem I think that I found a solution
before solution:
first i change apollo congifuration in nuxt.config.ts
file. i removed inMemoryCacheOptions
for problem endpont
after that i changed options for useQuery
result:
i think this problem only appears if the request has fragments in the body. if you disabled addTypename: false
in apollo configuration, request will answer without typename and request body wich belongs that typename
i am not sure that it help for you, @Baroshem , but it is good for me.
Environment
Darwin
v16.18.0
3.1.2
2.1.2
yarn@1.22.19
vite
modules
,runtimeConfig
,apollo
@pinia/nuxt@0.4.6
,@nuxtjs/apollo@5.0.0-alpha.5
-
Describe the bug
i have a problem with data fetching.
click login for get access token
pick apollo or fetch for fetching data
when i try to fetch data with useQuery. After that i fetch data in network -> preview
but useQuery do not show this data:
i try fetch data with $fetch and it's work
but it is not best.
how i can fix it?
Expected behaviour
i would like to get the correct data with useQuery
Reproduction
https://codesandbox.io/p/sandbox/beautiful-artem-u0uohu?selection=%5B%7B%22endColumn%22%3A40%2C%22endLineNumber%22%3A13%2C%22startColumn%22%3A40%2C%22startLineNumber%22%3A13%7D%5D&file=%2Fpages%2Findex.vue
Additional context
No response
Logs
No response