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:
+2
-2
@@ -3,8 +3,8 @@ import { type Nullable } from 'twenty-ui/utilities';
|
||||
|
||||
export type RecordGqlConnection = {
|
||||
__typename?: string;
|
||||
edges: RecordGqlEdge[];
|
||||
pageInfo: {
|
||||
edges?: RecordGqlEdge[];
|
||||
pageInfo?: {
|
||||
__typename?: Nullable<string>;
|
||||
hasNextPage?: Nullable<boolean>;
|
||||
hasPreviousPage?: Nullable<boolean>;
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { type RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection';
|
||||
|
||||
export type RecordGqlConnectionEdgesRequired = Omit<
|
||||
RecordGqlConnection,
|
||||
'edges'
|
||||
> &
|
||||
Required<Pick<RecordGqlConnection, 'edges'>>;
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { type RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection';
|
||||
import { type RecordGqlConnectionEdgesRequired } from '@/object-record/graphql/types/RecordGqlConnectionEdgesRequired';
|
||||
|
||||
export type RecordGqlOperationFindDuplicatesResult = {
|
||||
[objectNamePlural: string]: RecordGqlConnection[];
|
||||
[objectNamePlural: string]: RecordGqlConnectionEdgesRequired[];
|
||||
};
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { type RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection';
|
||||
import { type RecordGqlConnectionEdgesRequired } from '@/object-record/graphql/types/RecordGqlConnectionEdgesRequired';
|
||||
|
||||
export type RecordGqlOperationFindManyResult = {
|
||||
[objectNamePlural: string]: RecordGqlConnection;
|
||||
[objectNamePlural: string]: RecordGqlConnectionEdgesRequired;
|
||||
};
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { type RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection';
|
||||
import { type RecordGqlConnectionEdgesRequired } from '@/object-record/graphql/types/RecordGqlConnectionEdgesRequired';
|
||||
|
||||
export type RecordGqlOperationSearchResult = {
|
||||
[objectNamePlural: string]: RecordGqlConnection;
|
||||
[objectNamePlural: string]: RecordGqlConnectionEdgesRequired;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user