const updateCache : MutationUpdaterFn < any > = ( cache , { data }) => { const existingData : any = cache . readQuery ({ query : QUERY_ORDERS , variables : { id : listingId }, }) console . log ( existingData ) const newOrder = data . chargeCustomer console . log ( newOrder ) cache . writeQuery ({ query : QUERY_ORDERS , variables : { id : listingId }, data : { getOrders : [ newOrder , ... existingData . getOrders ] }, }) } const [ chargeCustomer ] = useMutation ( CHARGE_CUSTOMER , { update : updateCache }) function useMlsNumber ( listingId : string ): [ renderMlsNumber : any , hasMlsNumberPermission : boolean , loading : boolean ] { const classes = useStyles () const { currentAccount } = useContext ( AccountContext ) const [ open , setOpen ] = React . useState ( false ) const [ mlsNumber , setMlsNumber ] = useState ( '' ) const updateCache : MutationUpdaterFn < any...