From 9b6c9d3de9bff2dad9c18625603c84a07659844f Mon Sep 17 00:00:00 2001 From: Alexandre Monjol Date: Wed, 25 Oct 2023 09:44:34 +0200 Subject: [PATCH] bug(billable-metrics): fix pagination --- src/core/apolloClient/cache.ts | 1 + src/generated/graphql.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/core/apolloClient/cache.ts b/src/core/apolloClient/cache.ts index 4f09ebf07..027a0205f 100644 --- a/src/core/apolloClient/cache.ts +++ b/src/core/apolloClient/cache.ts @@ -20,6 +20,7 @@ export const cache = new InMemoryCache({ Query: { fields: { billableMetrics: { + keyArgs: false, merge: mergePaginatedCollection, }, plans: { diff --git a/src/generated/graphql.tsx b/src/generated/graphql.tsx index b86f0b9aa..311d2f807 100644 --- a/src/generated/graphql.tsx +++ b/src/generated/graphql.tsx @@ -218,6 +218,8 @@ export enum ChargeModelEnum { export type ChargeOverridesInput = { groupProperties?: InputMaybe>; + id: Scalars['ID']['input']; + invoiceDisplayName?: InputMaybe; minAmountCents?: InputMaybe; properties?: InputMaybe; taxCodes?: InputMaybe>;