DmitryTsepelev / graphql-ruby-persisted_queries

Persisted queries for graphql-ruby
MIT License
170 stars 20 forks source link

Mass query import for Apollo projects #5

Open DmitryTsepelev opened 4 years ago

JanStevens commented 4 years ago

Maybe you could use: https://graphql-ruby.org/javascript_client/sync and store it to a file and then on load read from that file and populate the cache?

This way you could have a CI setup that commits the result to a file which wile be loaded when your app starts to seed the store

DmitryTsepelev commented 4 years ago

Good point, pre–warmed cache might be helpful in case of unreliable network