|
@@ -107,7 +107,7 @@ type CachePolicyFields<T extends string> = Partial<Record<T, FieldPolicy | Field
|
|
const queryCacheFields: CachePolicyFields<keyof Query> = {
|
|
const queryCacheFields: CachePolicyFields<keyof Query> = {
|
|
channelsConnection: relayStylePagination(getChannelKeyArgs),
|
|
channelsConnection: relayStylePagination(getChannelKeyArgs),
|
|
extendedChannels: (existing, { toReference, args, canRead }) => {
|
|
extendedChannels: (existing, { toReference, args, canRead }) => {
|
|
- if (args?.where.id_eq) {
|
|
|
|
|
|
+ if (args?.where?.id_eq) {
|
|
// get single channel
|
|
// get single channel
|
|
const channelRef = toReference({
|
|
const channelRef = toReference({
|
|
__typename: 'Channel',
|
|
__typename: 'Channel',
|
|
@@ -160,7 +160,7 @@ const queryCacheFields: CachePolicyFields<keyof Query> = {
|
|
// get single nft
|
|
// get single nft
|
|
const nftRef = toReference({
|
|
const nftRef = toReference({
|
|
__typename: 'OwnedNft',
|
|
__typename: 'OwnedNft',
|
|
- id: args?.where.id_eq,
|
|
|
|
|
|
+ id: args?.where?.id_eq,
|
|
})
|
|
})
|
|
if (canRead(nftRef)) {
|
|
if (canRead(nftRef)) {
|
|
return [nftRef]
|
|
return [nftRef]
|