import { Cache , QueryInput } from "@urql/exchange-graphcache" ; export function betterUpdateQuery < Result , Query > ( cache , qi , result , fn ) { return cache . updateQuery ( qi , ( data ) => fn ( result , data as any ) as any ) ; }