Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
85 views

I am trying to run the useLazyQuery in my vue to get data from Apollo client. I am passing the parameter and query return different results based on the parameter being passed. My issue is that result ...
Arun Kumar's user avatar
0 votes
0 answers
63 views

When I am trying to call the mutate function with a button I get no response and the mutation is not working yet when I call it on page reload everything is working fine. This is my login.vue <...
IzVitox's user avatar
0 votes
1 answer
110 views

I'm sending a mutation request for adding new product to my API in nuxt 3 app like this: <script setup> const myProducts = ref([]); const addNewProductData= ref({id:1,name:'test'}); const ...
Mohammad's user avatar
  • 681
0 votes
0 answers
283 views

I'm trying to use the result I'm getting from my apollo client. but it keeps giving me error of undefined although the request send was success in network. It means I cannot get access to the result ...
sanaz baghban's user avatar
0 votes
1 answer
956 views

I'm trying a simple API request with Vue 3 and Apollo 4 with the composition API. I want to get the backend data into a pinia store, so I have the API call in the store under actions {}. Then I want ...
Thomas's user avatar
  • 1
0 votes
1 answer
208 views

We have a Vue application that connects to a Hasura API via the vue apollo client and uses auth0 for authentication. The app runs fine when we give the apollo client the Hasura admin secret header (...
AndyW's user avatar
  • 1,104
1 vote
0 answers
297 views

I'm new to vue-apollo 4 and I just can't get it to work with my simple Graphql API I already: - allowed edge://flags/#allow-insecure-localhost (enabled) - created and added to trusted authories ...
nam vo's user avatar
  • 3,469
0 votes
1 answer
37 views

apollo: { analytics: gql ` query getAnalyticsViews { viewer { zones(filter: { zoneTag: "tag" }) { ...
Charlotte Wells's user avatar
4 votes
0 answers
203 views

I wonder is this expected or not, but everytime i do refetch the result or onResult is called twice. const {onResult,refetch}=useQuery(GQLendpoint,options) onResult(data=>{ console.log(data)}) ...
Primery's user avatar
  • 41
0 votes
0 answers
174 views

I have been learning graphQL from few days. I am new to it. I've created a GraphQL project in VS code. For running the code I am writing 'node index.js' at first and code runs on Apollo sandbox ...
Akshay Kale's user avatar
1 vote
1 answer
1k views

I use Vue3 with the composition API and vue-apollo. Now I want to send a mutation to an graphql enpoint with useMutation() as follows. The thing is, useQuery works just fine. Everything worked fine, ...
emmgee's user avatar
  • 55
0 votes
1 answer
674 views

I'm trying to upload a file in my Vue3 (Vite) project using graph-QL, Apollo and Lighthouse but the documentation doesn't help me much. I followed all instructions written in the official lighthouse ...
netnull's user avatar
  • 221
0 votes
1 answer
227 views

Been trying to get a Subscription working with Hasura and Vue Apollo with a websocket link with Vue Apollo with Vue3. Have it all seemingly setup. The subscription works in Hasura so that’s right. The ...
Max Sinclair's user avatar
0 votes
1 answer
780 views

I followed this tutorial in Vue Apollo for retrieving data with fake api https://www.apollographql.com/blog/frontend/getting-started-with-vue-apollo/. I however have a code where I use <script ...
Dev Related Cube's user avatar
0 votes
1 answer
888 views

I am currently trying to force Vue Apollo to query the latest data on an event. However, when the apollo query re-query on an event (i.e. on route change) it still loads old results (although the data ...
Kilian Kramer's user avatar
1 vote
0 answers
257 views

So I am using vue router and trying to display the graphql results on my page. Here is the router link on index.js { path: '/clients/:id', name: 'client_profile', component: () => ...
ccsv's user avatar
  • 8,709
1 vote
1 answer
530 views

Trying to make a reactive query as per https://v4.apollo.vuejs.org/guide-option/queries.html#reactive-query-definition, but I can't get them to work. Error: Uncaught (in promise) Error: Invalid AST ...
djkato's user avatar
  • 776
1 vote
0 answers
192 views

I have a vue application that connects to a graphQL server using vue apollo. The vue-apollo.js code is as follows const httpEndpoint = process.env.XXX; const wsEndpoint = process.env.XXX; let ...
sachsom's user avatar
  • 394
3 votes
0 answers
618 views

I have a problem with the unit test. I try to check useQuery that has been called with toHaveBeenCalledTimes() but no luck it always returns zero time. I'm not sure which part I mistake. export ...
kosterz's user avatar
  • 127
0 votes
1 answer
437 views

I have a vue app and I am trying to do a POST request to firebase dynamic links API with apollo client mutation method but I'm getting a 400 bad request error. I wraopped all the fields with ...
Ali Seivani's user avatar
0 votes
1 answer
792 views

As the title suggest, I am trying to add a header to all queries and mutations made by apollo. I know I can do context: { headers: { 'Accept-Language': $this.i18n.current; } } but that is ...
Wing Hang Khoo's user avatar
0 votes
1 answer
392 views

so basically i want to do a query using Apollo Query in Vue 2 CLI. but it is not working, i dont know what is the problem. maybe someone can help me? i have stuck for 3 hours withour any progress here ...
Avalon's user avatar
  • 13
0 votes
1 answer
3k views

I'm trying to integrate Vue Apollo in a a Vite project using the composition API. My main.js file look like this: import { createApp } from 'vue' import App from './App.vue' import * as apolloProvider ...
netnull's user avatar
  • 221
1 vote
0 answers
163 views

I created an app with Vue 3. I ran vue add apollo and run into an error. how do I fix this
Loriel Desamito's user avatar
0 votes
1 answer
1k views

I am working on vue-apollo and was able to use mutations and queries, but am facing issue using subscriptions. The apollo-express server with subscriptions is working fine. When a new event is created ...
Pranith Shetty's user avatar

1
2 3 4 5
7