How to add variables to Apollo Client refetchQueries function


I am currently using the refetchQueries function from the Apollo Client to update my local cache when a change happens on the server:

async refetch() {
            await getApolloClient().refetchQueries({
                include: [query],

The problem is that I want to refetch this query with new variables and not the variables that were used the last time, however Apollo doesn’t allow me to do this, since there is no variables option on the function.

Does anyone know if this is possible?