diff --git a/README.md b/README.md index 44d4a67fe5f..b72db3034d9 100644 --- a/README.md +++ b/README.md @@ -580,7 +580,7 @@ saveTodo({ }) // The query below will be updated with the response from the mutation above when it succeeds -const { data, isLoading, error } = useQuery(fetchTodoList, { +const { data, isLoading, error } = useQuery(fetchTodoByID, { variables: { id: 5, },