Closed JanStevens closed 4 years ago
Great start! Both options should work, the only thing we should remember that one day someone will probably need to split up Resolver
into ApolloResolver
and RelayResolver
🙂
Yea I don't think it's a great idea anymore. It might save space but it also messes up the hash integrity.
When things go wrong there is no way to calculate the right hash again that was send from the client if you only got your server side cache.
Implements #27
I did the first POC but I was a bit torn on the implementation, I see two possible ways:
resolver.rb
when we callpersist_query
on the store (this is done in this MR)persist_query
actually delegates tostore_presist_query
and every store implements notpersist_query
butstore_persist_query