Apollo ClientのrefetchQueriesの型
何度も調べそうなので、Apollo ClientのrefetchQueriesのFlow Typeをメモ。
// @flow import type { ExecutionResult } from 'graphql'; import type { RefetchQueryDescription } from 'apollo-client'; type HogePayloadType = { // ... refetchQueries?: RefetchQueryDescription | ((r: ExecutionResult) => RefetchQueryDescription), // ... }