From ba0b0c01ad78974a47ce528a322b658d508b8762 Mon Sep 17 00:00:00 2001 From: meetpatel3686 <42689379+meetpatel3686@users.noreply.github.com> Date: Fri, 10 Sep 2021 02:29:28 +0530 Subject: [PATCH] Fix typo in mutations.mdx (#8757) 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.