Posts
Members
Info
How do I use multiple clients or graphql API's?
I have two queries and two different graphql endpoints for them. I found a discussion https://github.com/vuejs/vue-apollo/discussions/284 about it but I can't seem to make it work. My queries are always targetting the same endpoint.
0
0
Using Apollo with Vue 3?
Is anyone using Vue 3 with Vue Apollo v4? I am trying to figure out whether it's possible to include authorization headers with mutations and queries the latest version. I'm aware the vue-apollo library is still catching up with the latest Vue, but there's a working example of…
1
0
How do I tell the Apollo cache to set relationships on large datasets
I have an initial query: I can't get the photos, as this will make the dataset too large, so I execute another query when I dig into an album: Now, how do I tell the cache that these photos belong to the selected album?
0
1
How do I use the @include or @skip directives in the ApolloQuery component?
In template, I am using the component: I also tried: My query: …
0
0
WHAT AM I DOING WRONG :(
hello! im trying to call an apolllo mutation from vuex store and im not sure what ime doing wrong. const { ApolloServer, gql } = require('apollo-server') const typeDefs = gql` …
0
0
How to organize Apollo Client 3 on a big project?
Hello everyone, I'm currently searching for good practices to implement Apollo Client into a big project and I would love to see some examples. Someone has any links? Or how would you start from file structure and splitting cache or typeDefs?
0
1
How to declare this.$apollo when using class components in TypeScript?
Trying to figure out how to get TypeScript to recognize things like this.$apollo.mutate inside my class methods. My component extends the standard Vue class from vue-property-decorator for the Component decorator to work. Standard Vue class does of course not have any…
0
6
Composite or Batch queries
Hi, is it possible for Vue Apollo to create composite queries? A composite / batch query I have an array if ids [ 12, 34, 56, 76, 76, …] and for each id I need to send a graphQL query. I could end up with a 500 queries being called one after the other. …
0
3
2 components same query
I have 2 components that execute the same query, how can I get component (A) to get updated data when component (B) does a refetch/requery/etc ?
0
0
·234d# Vue Apollo
Nuxt/Apollo -> Apollo Studio
Hello, Has anyone successfully configured Apollo Studio for Nuxt / Nuxt-Apollo? If not, any other recommended tools for getting metrics on API usage?
0
0