From 1e28531cec0cb3fdae1ac93aa182eb2b9859ea23 Mon Sep 17 00:00:00 2001 From: meetpatel3686 <42689379+meetpatel3686@users.noreply.github.com> Date: Mon, 6 Sep 2021 13:39:45 +0530 Subject: [PATCH] Update mutations.mdx Grammar correction: "thanks of your" -> "thanks to your" --- docs/source/data/mutations.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/data/mutations.mdx b/docs/source/data/mutations.mdx index 797b441a8b3..f465cd50c97 100644 --- a/docs/source/data/mutations.mdx +++ b/docs/source/data/mutations.mdx @@ -326,7 +326,7 @@ addTodo({ }) ``` -If `ReallyImportantQuery` was already going to be passed to `onQueryUpdated` thanks of your `update` function, then it will only be passed once. Using `refetchQueries: ["ReallyImportantQuery"]` just guarantees the query will be included. +If `ReallyImportantQuery` was already going to be passed to `onQueryUpdated` thanks to your `update` function, then it will only be passed once. Using `refetchQueries: ["ReallyImportantQuery"]` just guarantees the query will be included. If you find you've included more queries than you expected, you can skip or ignore a query by returning `false` from `onQueryUpdated`, after examining the `ObservableQuery` to determine that it doesn't need refetching. Returning a `Promise` from `onQueryUpdated` causes the final `Promise>` for the mutation to await any promises returned from `onQueryUpdated`, eliminating the need for the legacy `awaitRefetchQueries: true` option.