diff --git a/packages/docs/src/guide-composable/query.md b/packages/docs/src/guide-composable/query.md index dcc59c0a..59f8c67f 100644 --- a/packages/docs/src/guide-composable/query.md +++ b/packages/docs/src/guide-composable/query.md @@ -700,6 +700,63 @@ export default { ``` +### Providing new variables to `refetch` + +You call `refetch` with a new set of variables like so: + +```vue{41} + + + +``` + +::: warning +If you provide new values for **some** of your original query's variables but not **all** of them, `refetch` uses each omitted variable's original value. +::: + ## Event hooks `useQuery` returns event hooks allowing you to execute code when a specific event occurs.