add petAppearanceById client caching
If we already got this PetAppearance, now `petAppearanceById` knows how to serve it from the client cache instead making a network request!
This commit is contained in:
parent
1e30e7c8b0
commit
05e5c5ad3e
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ const typePolicies = {
|
||||||
item: (_, { args, toReference }) => {
|
item: (_, { args, toReference }) => {
|
||||||
return toReference({ __typename: "Item", id: args.id }, true);
|
return toReference({ __typename: "Item", id: args.id }, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
petAppearanceById: (_, { args, toReference }) => {
|
||||||
|
return toReference({ __typename: "PetAppearance", id: args.id }, true);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue