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:
Emi Matchu 2020-08-29 13:23:41 -07:00
parent 1e30e7c8b0
commit 05e5c5ad3e

View file

@ -21,6 +21,10 @@ const typePolicies = {
item: (_, { args, toReference }) => {
return toReference({ __typename: "Item", id: args.id }, true);
},
petAppearanceById: (_, { args, toReference }) => {
return toReference({ __typename: "PetAppearance", id: args.id }, true);
},
},
},