Fixed Apollo cache bug (#16523)

Fixes https://github.com/twentyhq/twenty/issues/16520

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Lucas Bordeau
2025-12-12 17:45:50 +01:00
committed by GitHub
parent f0af947331
commit ee47a773bd
22 changed files with 826 additions and 104 deletions
@@ -1,5 +1,5 @@
import { getRecordsFromRecordConnection } from '@/object-record/cache/utils/getRecordsFromRecordConnection';
import { type RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection';
import { type RecordGqlConnectionEdgesRequired } from '@/object-record/graphql/types/RecordGqlConnectionEdgesRequired';
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { type FieldMetadataType } from 'twenty-shared/types';
@@ -1746,7 +1746,7 @@ export const peopleQueryResult = {
},
],
},
} satisfies { people: RecordGqlConnection };
} satisfies { people: RecordGqlConnectionEdgesRequired };
export const allMockPersonRecords = getRecordsFromRecordConnection({
recordConnection: peopleQueryResult.people,