Lenny
05/14/2020, 5:42 PMShane Myrick
05/14/2020, 5:55 PMsuspend
functions, you can have a tuned approach on how each field is resolved and how you cache the response server side.
We don’t take an opinion on how to save repeated requests if you want to use data loader or some custom cache solution.
There is an example of how to use the existing data-loader
java library though here:
https://github.com/ExpediaGroup/graphql-kotlin/pull/396Lenny
05/14/2020, 5:58 PMLenny
05/14/2020, 5:59 PMLenny
05/14/2020, 5:59 PMKrystian Rybarczyk
05/14/2020, 6:08 PMLenny
05/14/2020, 6:20 PM.await
extension function … very coolLenny
05/14/2020, 6:21 PMLenny
05/15/2020, 6:43 PMLenny
05/15/2020, 6:44 PMLenny
05/15/2020, 6:45 PMdataloader.load(id)
to allow making one network or database request with multiple idsLenny
05/15/2020, 6:46 PM