I can't seem to understand the error I am getting on my client application. I am subscribing to a graphql subscription and I am able to retrieve the updates but I am not being able to push the changes to the typescript array called "models:Mo...
GitHub's new GraphQL API requires authentication with a token as the previous version. So, how do we add a 'Header' information into the HttpLink inside Apollo-Client?  const client = new ApolloClient({   link: new HttpLink({ uri: 'ht...
I have been reviewing the Apollo documentation but I do not see information of how to go about handling server errors in the Apollo client.  For example, suppose that the server either:     Times out    Becomes unreachable   Unexpectedly fails     Ho...
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...
I'm using graphql + mysql + react-apollo and here's one of the graphql type for User table:  type User {   id: ID!   name: String! }   My issue with ID scalar type in graphql is that it is returned as a string when primary keys are int in mys...
I have a React-Native app where I make requests to a GraphQL server. Everything works fine except I need a way to set the timeout on the request/client to 5 or 10 seconds. Currently the request takes a very long time before it times out (around 1 min...
I have an upsert query that gets triggered on either create or update. On update, Apollo integrates the result into the cache but on create it does not.  Here is the query:  export const UPSERT_NOTE_MUTATION = gql`   mutation upsertNote($id: ID, $bod...
I have a component that displays search data returned from the Spotify API. However, every time I update the state the UI flickers:   Input:              <DebounceInput                 debounceTimeout={300}                 onChange={handleChange}...
I try to make a GraphQl mutation using apollo graphQl client.   This makes an error 500 when the mutation variables contains ___typename properties (which obviously don't exist in the graphQl schema).  To fix that it is possible to set addTypenam...
I'm using both ApolloClient from 'apollo-client' and 'apollo-boost' libraries, like   const client = new ApolloClient({   uri: 'https://www.myapp.no/api/',   request: async (operation) => {      console.log(operation)...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.