You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
The original author of the client option PR was silent for 6 months, then posted this, indicating that he's no longer interested in working on it.
If the client option is deprecated, it would probably be good to post something, including a comment on the PR above so that subscribers see it, and a recommended approach to addressing a requirement for multiple clients.
The best way forward may be influenced by the functionality provided by the QueryRecyclerProvider in <ApolloProvider>; I'm afraid I don't understand what it does.
(Thanks!)
The text was updated successfully, but these errors were encountered:
The following code line from current version (2.1.9) and both Query and Mutation gives precedence to props client. So we can indeed override the default client via props.
The feature is not documented though.
In addition to that the most common approach would be having a Gateway API running GraphQL and managing queries to different targets APIs. I wrote this article discussing some approaches if you really want to do that and pointing out some pros and cons.
lorensr
changed the title
[enhancement 2.1] Add client option to new <Query>
Document client prop
Oct 15, 2018
Support for the client option on old-school
graphql()
queries is absent from <Query>.graphql()
options<Query>
optionsThis may have happened because the client option was never documented.
The original author of the
client
option PR was silent for 6 months, then posted this, indicating that he's no longer interested in working on it.If the
client
option is deprecated, it would probably be good to post something, including a comment on the PR above so that subscribers see it, and a recommended approach to addressing a requirement for multiple clients.The best way forward may be influenced by the functionality provided by the
QueryRecyclerProvider
in<ApolloProvider>
; I'm afraid I don't understand what it does.(Thanks!)
The text was updated successfully, but these errors were encountered: