Hasura Graphql Uncaught (in promise) Error: field “adyenStatus” not found in type: ‘Payouts’

Error that I can see in the Console in the browser is:
Uncaught (in promise) Error: field "adyenStatus" not found in type: 'Payouts'

My code looks like this:

src/pages/Payouts/helpers/mapPayouts.ts

import { formatDateTime } from '@utils/helpers/dateTimeFormatter/dateTimeFormatter';
import { formatNOK } from '@utils/helpers/formatNOK';

import { Payout } from '../types/Payouts.type';

export function mapPayouts(payouts?: Payout[]) {
  return (payouts || []).map((pot) => {
    return {
      ...pot,
      date: formatDateTime(pot.date),
      orderValue: formatNOK(Number(pot.orderValue)),
      amount: formatNOK(Number(pot.amount)),
    };
  });
}

src/pages/Payouts/hooks/usePayoutsQuery/usePayoutsQuery.ts

import { OperationVariables, gql, useQuery } from '@apollo/client';

import { Payout } from '../../types/Payouts.type';

export interface PayoutsType {
  payoutsAggregate: {
    aggregate: {
      count: number;
    };
  };
  payouts: Payout[];
}

export const GET_PAYOUTS = gql`
  query Payouts($offset: Int, $limit: Int, $orderBy: [PayoutsOrderBy!], $where: PayoutsBoolExp) {
    payoutsAggregate {
      aggregate {
        count
      }
    }
    payouts(offset: $offset, limit: $limit, orderBy: $orderBy, where: $where) {
      # payouts list data
      id: payoutRef
      date: createdAt
      orderValue: totalOrderValue
      amount: payoutAmount
      status
      payoutAmount
      currency
      adyenStatus
    }
  }
`;

export default function usePayoutsQuery(variables?: OperationVariables) {
  return useQuery<PayoutsType>(GET_PAYOUTS, { variables });
}

src/pages/Payouts/types/Payouts.type.ts

export interface Payout {
  id: string;
  date: string;
  orderValue: string;
  amount: string;
  status: PayoutStatus;
  currency: string;
  adyenStatus: string;
}

export enum PayoutStatus {
  DISBURSED = 'Disbursed',
  HOLD = 'Hold',
  DRAFT = 'Draft',
}

src/pages/Payouts/Payouts.tsx

import { AppTable } from '@/modules/AppTable';
import { Box, Card, Typography } from '@mui/material';
import { createColumnHelper } from '@tanstack/react-table';
import { useTranslation } from 'react-i18next';
import { FinancialClause } from '@components/FinancialClause/FinancialClause';
import Page from '@components/Page/Page';

import { Payout, PayoutStatus } from './types/Payouts.type';
import usePayouts from './usePayouts/usePayouts';

export const getPayoutStatusColor = (payoutStatus: PayoutStatus) => {
  const payoutStatusColor = {
    DISBURSED: '#ffffff',
    HOLD: '#cccccc',
    DRAFT: '#eeeeee',
  };
  /* @ts-expect-error string vs payoutStatus? */
  return payoutStatusColor[payoutStatus.toUpperCase()];
};

export function Payouts() {
  const {
    isLoading,
    page,
    pageSize,
    payouts,
    handleSortChange,
    handlePageChange,
    handlePageSizeChange,
    handleFilterChange,
  } = usePayouts();
  const { t } = useTranslation();

  const columnHelper = createColumnHelper<Payout>();
  const columns = [
    columnHelper.accessor('id', {
      header: t('payouts_page.table.header.ref') as string,
      cell: ({ row: { original } }) => <>#{original.id}</>,
    }),
    columnHelper.accessor('date', {
      header: t('payouts_page.table.header.date') as string,
    }),
    columnHelper.accessor('amount', {
      header: t('payouts_page.table.header.amount') as string,
    }),

  console.log(payouts.payOutsData);

  return (
    <Page title={t('payouts_page.title')}>
      <Box sx={{ display: 'flex', flexDirection: 'column', gap: 10 }}>
        <Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
          <Typography variant="h4" paragraph>
            {t('payouts_page.title')}
          </Typography>
        </Box>
        <FinancialClause />
        <Card>
          <AppTable
            columns={columns}
            data={payouts.payOutsData ?? []}
            filterPlaceholder={t('payouts_page.table.filter_table_placeholders')}
            isFetching={isLoading}
            page={page}
            pageSize={pageSize}
            rowCount={payouts?.payOutsAggregate.aggregate.count ?? 0}
            onFilterChange={handleFilterChange}
            onPageChange={handlePageChange}
            onPageSizeChange={handlePageSizeChange}
            onSortChange={handleSortChange}
          />
        </Card>
      </Box>
    </Page>
  );
}

This is how the API looks in Hasura Console:

query Payouts($offset: Int, $limit: Int, $orderBy: [PayoutsOrderBy!], $where: PayoutsBoolExp) {
    payoutsAggregate {
      aggregate {
        count
      }
    }
    payouts(offset: $offset, limit: $limit, orderBy: $orderBy, where: $where) {
      # payouts list data
      id: payoutRef
      date: createdAt
      orderValue: totalOrderValue
      amount: payoutAmount
      status
      payoutAmount
      currency
      adyenStatus

      # singular payout data
      order {
        id
        orderRef
        orderDate
        singleOrder
        status
        numberOfCarts
        productType {
          groupSize
          name
          groupPrice
          soloPrice
        }
        carts {
          items {
            totalCost
       }
     }
    }
  }
  }

I can’t understand why this field is not visible. I have tested some other fields, like currency and added it and it works fine. Anyone can advice on what is wrong here?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật