Questions tagged [apollo]

Apollo is a GraphQL client and cache for JavaScript, iOS (Swift) and Android.

Apollo is a flexible, fully-featured client for every platform.

Apollo is made up of a family of technologies you can incrementally add to your stack: Apollo Client to connect data to your UI, Apollo Engine for infrastructure and tooling, and Apollo Server to translate your REST API and backends into a GraphQL schema.

It has implementations for JavaScript, iOS and Android. The JavaScript client has integrations for React, Angular, Vue.js, Ember.js and more.

Apollo is fully compatible with any server that implements the GraphQL specification.

4536 questions
33
votes
3 answers

Using GraphQL Fragment on multiple types

If I have a set of field that is common to multiple types in my GraphQL schema, is there a way to do something like this? type Address { line1: String city: String state: String zip: String } fragment NameAndAddress on Person, Business { …
Good Idea
  • 2,481
  • 3
  • 18
  • 25
32
votes
5 answers

How to refresh JWT token using Apollo and GraphQL

So we're creating a React-Native app using Apollo and GraphQL. I'm using JWT based authentication(when user logs in both an activeToken and refreshToken is created), and want to implement a flow where the token gets refreshed automatically when the…
user3043462
  • 456
  • 1
  • 5
  • 7
32
votes
3 answers

Add custom header to apollo client polling request

I am using the apollo-client library to query data from my Graphql server. Some of the queries are sent to the server every 5 seconds through apollo polling ability. Is there a generic way to add a custom header to all requests that are sent by my…
Ron Badur
  • 1,873
  • 2
  • 15
  • 34
32
votes
1 answer

Should I handle a GraphQL ID as a string on the client?

I am building an application using: MySQL as the backend database Apollo GraphQL server as a query layer for that database Sequelize as the ORM layer between GraphQL and MySQL As I am building out my GraphQL schema I'm using the GraphQL ID data…
bryan kennedy
  • 6,969
  • 5
  • 43
  • 64
31
votes
3 answers

Apollo is not assignable to parameter of type 'VueClass

Iam building a 'Nuxt.js' app with typescript. This is my code: