Apollo-client: Using apollo-client without react/hooks

Created on 6 Aug 2020  路  2Comments  路  Source: apollographql/apollo-client

Hello,
Is way how use apollo-client 3.0 without react/hooks?
How I should call query or mutation without react?

Most helpful comment

@sneznaovca maybe you are like me and missed:

https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/#using-apollo-client-without-react

All 2 comments

The ApolloClient class has query() and mutate() methods that you can use without React. https://www.apollographql.com/docs/react/api/core/ApolloClient/#apolloclient-functions

@sneznaovca maybe you are like me and missed:

https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/#using-apollo-client-without-react

Was this page helpful?
0 / 5 - 0 ratings