Add missing gql cache read functions
This commit is contained in:
@@ -83,6 +83,12 @@ const typePolicies: TypedTypePolicies = {
|
|||||||
id: args?.id,
|
id: args?.id,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
chapter(_, { args, toReference }) {
|
||||||
|
return toReference({
|
||||||
|
__typename: 'ChapterType',
|
||||||
|
id: args?.id,
|
||||||
|
});
|
||||||
|
},
|
||||||
category(_, { args, toReference }) {
|
category(_, { args, toReference }) {
|
||||||
return toReference({
|
return toReference({
|
||||||
__typename: 'CategoryType',
|
__typename: 'CategoryType',
|
||||||
@@ -136,6 +142,12 @@ const typePolicies: TypedTypePolicies = {
|
|||||||
lastSyncStatus(_, { toReference }) {
|
lastSyncStatus(_, { toReference }) {
|
||||||
return toReference({ __typename: 'SyncStatus', key: {} });
|
return toReference({ __typename: 'SyncStatus', key: {} });
|
||||||
},
|
},
|
||||||
|
tracker(_, { toReference }) {
|
||||||
|
return toReference({ __typename: 'TrackerType', key: {} });
|
||||||
|
},
|
||||||
|
trackRecord(_, { toReference }) {
|
||||||
|
return toReference({ __typename: 'TrackRecordType', key: {} });
|
||||||
|
},
|
||||||
mangas: {
|
mangas: {
|
||||||
keyArgs: ['condition', 'filter', 'orderBy', 'orderByType', 'order'],
|
keyArgs: ['condition', 'filter', 'orderBy', 'orderByType', 'order'],
|
||||||
merge(existing, incoming, { mergeObjects }) {
|
merge(existing, incoming, { mergeObjects }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user