-
You can mark a query as optional by doing this:
```js
useQuery(query, {skip: true});
```
However the query is still parsed and validated. I have a situation where a React component receive…
-
https://www.apollographql.com/docs/react/data/mutations/#usemutation-api
https://www.apollographql.com/docs/react/api/react/hooks/#params-2
Also, the first link doesn't list:
- the first param …
-
Currently, modifying a non-root, non-normalized field requires nesting calls to `cache.modify()`, like the below code modifying `ROOT_QUERY.currentUser.favoriteReviews`:
```
const [removeReview] =…
-
**Describe the bug**
Passing a `DocumentNode` to `refetchQueries` as parameter does not trigger an update for the query, whereas passing the name of the query does. As shown [here](https://www.apollo…
-
### Aim
Wanted to get running with the starter template
### Expected Behavior
Expected the starter template to work
On that note, it would far better if the template was minimal and did not ch…
-
The types for useMutation indicate that it does support `errorPolicy`.
useMutation is typed with `OperationVariables` as the second parameter: https://github.com/apollographql/react-apollo/blob/ma…
-
### Issue Description
My use case is to update the cache with the result from mutation and also refresh a query to get the side effects of the mutation, but this second step can happen without show…
-
**Describe the bug**
In the docs it's stated that you can either directly pass variables to `useMutation` or pass them once you call the resulting `mutate` function.
With Typescript, as soon as …
-
TS now supports type narrowing when destructuring. So it's worth having multiple types for the return values of useQuery and useMutation
```ts
import { Ref, ShallowRef, ref, shallowRef } from "vue";
…
posva updated
1 month ago
-
I have seen a few other posts regarding fetching and MockedProvider. However I haven't seen anyone that is getting the same warning as me.
My code executes a mutation which that uses a refetch to …