score:0

Accepted answer

you can use the withapollo higher order component to put the client into the props of your component.

import { withapollo } from '@apollo/react-hoc';    

const mycomponent = ({ client }) => {
  ...
}
export default withapollo(mycomponent)

here is a link to the docs https://www.apollographql.com/docs/react/api/react-hoc/#withapollocomponent


Related Query

More Query from same tag