Closed csadai closed 4 years ago
Its already there: https://github.com/Steams/ra-data-hasura-graphql#customize-the-apollo-client
Probably making the word "otherApolloOptions" to be a link to https://www.apollographql.com/docs/react/api/apollo-client/#ApolloClientOptions is a good idea.
Yes, but as stated in my ticket, the recommendation to bring your own client is overkill, when you can benefit from all the underlying client of ra-data-graphql
by just providing a httpLink
.
This is not a bug nor a problem, just a recommendation for those finding this ticket while searching for something simpler.
Probably making the word "otherApolloOptions" to be a link to https://www.apollographql.com/docs/react/api/apollo-client/#ApolloClientOptions is a good idea.
Absolutely
Hi,
I've read the
README
which invites me to create a dedicatedApollo Boost
instantiation in order to pass someheaders
to my requests.It's actually possible to pass those using the default connection, by supplying a GraphQL-Link object in lieu of the
uri
parameter.e.g.
You may want to update the documentation with it, as it's probably easier than redoing the whole connection (handling cache, etc.)