This module includes some helper functions to allow you to refetch queries by name. It's been built against Apollo Client 2.0.
npm install apollo-refetch-queriesThis module includes some helper functions to allow you to refetch queries by name. It's been built against
Apollo Client 2.0.
Code originally taken from Apollo Client issue 3540
```
yarn add apollo-refetch-queries
``
npm i apollo-refetch-queries
`javascript
import * as queries from 'apollo-refetch-queries'
const query = gql
query myNamedQuery {
topLevelQuery
}
queries.refetchQueriesByName(apolloClientInstance, ['myNamedQuery'])
`
`refetchQueriesByName (client: ApolloClient`
`refetchQueryByName (client: ApolloClient`
`refetchAllQueries (client: ApolloClient``