Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

Vue 3 apollo client UseLazyQuery for multiple results

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
-1 votes
1 answer
87 views

'npm run dev' result: [Error: ENOENT: no such file or directory, open '/ddev/project-name/node_modules/@vue/apollo-composable/src/useApolloClient.ts']

I took over a Craft CMS project, which I successfully upgraded to the latest version of Craft 5. When I run the command needed to build the JS and CSS files npm run dev I get the following error: ...
cjhdev82's user avatar
0 votes
0 answers
37 views

Vue JS how to properly load and refresh Vue app with Apollo and Auth0 JWT tokens

In main.js we have the below code to load the Vue app with Apollo and Auth0. This works but has always felt hacky and is now running into an issue where if the JWT token expires the user gets errors ...
AndyW's user avatar
  • 1,094
0 votes
1 answer
49 views

Having problems with vue devserver proxy not redirecting

I have a simple vue applicaition which I am running on port 8080. I also have a graphql server running on port 3000. There is a vue component on my app which calls the function getData(); This get ...
Alici-EdOna's user avatar
0 votes
0 answers
40 views

Getting Bad Request from graphql call

I am using the vue-apollo with VueJs. Upon clicking the I trigger the 'query' function which makes the graphql api call but i always get a bad request response. Please tell me what am I missing? ...
Molamin Ceesay's user avatar
0 votes
1 answer
250 views

Ternary operator in GraphQL filter

Can I use ternary operator in a GraphQL filter? I want to filter using a variable but I get an error GraphQLError: Syntax Error: Expected Name, found "=". query GetQuery($env: String) { ...
user16589580's user avatar
2 votes
1 answer
202 views

React as a dependency for @vue/apollo-composable

I have a VueJs application using the Composition API. I want to use apollo to make queries to my GraphQL backend, but get the error Could not resolve "react". My dependencies are: "@...
Profix's user avatar
  • 43
0 votes
0 answers
266 views

Get Result from apollo client error undefined

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
717 views

Vue Apollo Composable useQuery Ignores Reactive Filter Variable Change Even Though It Triggers a Refetch

I am using Vue Apollo Composable with useQuery to perform a GraphQL query. My pagination works as expected; however, I am facing an issue with my filters.verified variable. Although I see the variable ...
Tomas Gil Amoedo's user avatar
0 votes
1 answer
185 views

auth0 getAccessTokenSilently returns empty object when trying to set vue apollo client bearer token

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,094
1 vote
0 answers
280 views

Vue apollo client keeps getting self-signed certificate error

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,457
1 vote
0 answers
211 views

apolloClient aborted after graphql request

I'm trying to make a request to graphql api and it's aborting me after I added no-cors. Before this it was giving me this error Access to fetch at 'https://venia.magento.com/graphql' from origin 'http:...
tomigar's user avatar
  • 43
0 votes
1 answer
1k views

Vue3 Composition API Apollo Client userMutation() in watch function

I am using Vue3 with the composition API and Apollo client. I use an useQuery() function to query some data. With it I use a watcher like watch(result, (newVal) => {}) What I want to do is, using ...
emmgee's user avatar
  • 55
0 votes
0 answers
328 views

vuejs not able to use data from useMutation on template => async problem?

I'm using a mutation from gql with vue apollo in the front tom get some data, there's a number and an Email. Once mutation is finished, I assign the value to refs: const mobile = ref('') const ...
Tomas Gil Amoedo's user avatar
1 vote
3 answers
471 views

Typescript says property doesn't exist though it does?

I have the following code. import { useQuery } from "@vue/apollo-composable"; const ACCOUNTS_QUERY = gql` { accounts { id name number } } `; interface ...
Björn Andersson's user avatar

15 30 50 per page
1
2 3 4 5
7