refetchQueries property

List<QueryOptions<Object?>>? refetchQueries
final

Queries to refetch on the network once this mutation settles without exceptions.

Mirrors Apollo's refetchQueries for mutate: each QueryOptions entry is re-fetched after the mutation completes. An entry with a null QueryOptions.fetchPolicy is fetched with FetchPolicy.networkOnly, so a cacheFirst default cannot turn the refetch into a cache read.

Refetch failures surface on the mutation future only when awaitRefetchQueries is true, otherwise they are ignored.

Implementation

final List<QueryOptions<Object?>>? refetchQueries;