Questions tagged [vue-apollo]

Apollo/GraphQL integration for VueJS

339 questions
0
votes
0 answers

Apollo client QUERIES not sending headers to server but mutations are fine

I hooked up a front end to a graphql server. Most if not all the mutations are protected while all the queries are not protected. I have an auth system in place where if you log in, you get an access/refresh token which all mutations are required to…
user3026715
  • 404
  • 3
  • 5
  • 19
0
votes
1 answer

Missing movies attribute on result Vue GraphQL

I am frontend developer so for the first time I got my hands on vue and graphql, I don’t know how exactly to deal with this error: Missing getMovies attribute on result {movies: Array(20)} Here is my code, and I can see the data is fetched…
Mario Ramos García
  • 755
  • 3
  • 8
  • 20
0
votes
1 answer

How do I use fragments on union in Vue.js?

Does anyone have any idea how do I use fragments on unions? I've seen the documentation for React (https://www.apollographql.com/docs/react/advanced/fragments/#fragments-on-unions-and-interfaces) but not much on Vue. I have a query that returns two…
Zachery Ng
  • 48
  • 4
0
votes
1 answer

Store apollo query result in a local state?

Let's say I have a list of shrinked items with users ID. By clicking on them I want to lazy load data with apollo query, expand and show received data, for example username, address, etc. So how should I "cache" or store this data locally, to be…
0
votes
1 answer

what's the equivalent vue-apollo options of this curl request?

I don't know how to pass the --user field of this curl request in vue-apollo curl -v \ --user 'user@domain.com:password' \ -X POST \ -H "Content-Type: application/json" \ --data '{ "query": "{ companies{ uid name url }}" }' \ …
0
votes
1 answer

How to refetch an apollo vuejs after an external oauth2 completion

I have a vuejs/apollo grapqhl Single page app. At one point there is an option to connect it another service (in this case vimeo). The flow is click to start - this goes to the graphql server and collects a redirect link to the vimeo oauth2 server…
bruce
  • 1,408
  • 11
  • 33
0
votes
1 answer

How to use Graphql Vue Apollo on older IOS / older browser?

I just realize and noticing that my vue app doesn't work well on some older browsers (ios 9 for example). I used the vue-apollo to get data from graphql api using django graphene , but it doesn't event get called on the first load when i debug it.…
0
votes
0 answers

Why no cookies are being sent when in local network?

I am using XAMPP and opening a website hosted on PC desk from another PC in local network. I am using Laravel Passport with CreateFreshApiToken middleware. When I am posting to my GraphQL API from PC "desk", everything works fine, but posting from…
Zezi Reeds
  • 1,286
  • 1
  • 16
  • 29
0
votes
1 answer

Vue Apollo - Cannot query with variable "Cannot assign to read only property 'name' of object"

I'm looking to query a django-graphene powered GraphQL backend with a Vue Apollo / Nuxt powered front end to retrieve a single product's data. My method of trying to send the query results in the following error: ERROR Cannot assign to read only…
Pete Dermott
  • 663
  • 1
  • 9
  • 20
0
votes
2 answers

Multiple Queries, show result in same div

When clicking "Popular", how to replace contents with result from new query (getPopular)? ( v-for="casino in allCasinos" needs to instead show: v-for="casino in getPopular" )
Popular
Toothfairy
  • 383
  • 1
  • 6
  • 24
0
votes
1 answer

vue-apollo awsappsync - refresh credentials

I am using vue-apollo with AWSAppSyncClient. I have followed this documentation for Vue - https://github.com/awslabs/aws-mobile-appsync-sdk-js . My requirement is user should be able to subscribe to appsync. Here is the main.js code. import…
user1638279
  • 523
  • 2
  • 12
  • 26
0
votes
1 answer

vue-apollo mutation trigger unexpected subscription

I have a smart query in my entry component. It will show items when page loads. apollo: { feed: { query: FEED_QUERY, result({ data, loading, networkStatus }) { console.log("Feed success!"); this.feedItems(data.feed);…
39ecneret
  • 661
  • 3
  • 7
  • 17
0
votes
1 answer

Vue instance data not the same as network response, where is the bug?

Network response: Vue instance: Expected network response would be that the all_members would show all (in my case 12) club_members. If I query without using first/skip, it shows only 10 club_members (which is incorrect) I currently have found a…
Robert
  • 504
  • 5
  • 27
0
votes
1 answer

[vue-apollo]:An error has occured for query getTeam

I am working vue-apollo, currently I am having issues: Workspace.vue