timhall / svelte-apollo

Svelte integration for Apollo GraphQL
MIT License
947 stars 68 forks source link

Make restore work as it should #45

Closed dbismut closed 4 years ago

dbismut commented 4 years ago

Disclaimer: I have very little knowledge of svelte or Apollo.

However, the restore.ts uses the writeQuery method to store the query, and the arguments passed to it don't match the API signature.

https://www.apollographql.com/docs/react/v2.4/api/apollo-client/#ApolloClient.writeQuery

timhall commented 4 years ago

Looks good, thanks!