Matti MK
09/12/2022, 7:22 AMmbonnin
09/12/2022, 7:24 AMMatti MK
09/12/2022, 7:33 AMCatchUp
looks like Apollo is used in the GitHub service here: https://github.com/ZacSweers/CatchUp/blob/main/services/github/src/main/kotlin/io/sweers/catchup/service/github/GitHubService.ktMatti MK
09/12/2022, 8:48 AMmbonnin
09/12/2022, 9:00 AMStylianos Gakis
09/12/2022, 9:20 AMsafe
alternatives built on-top of the apollo functions like safeQuery (yes the name should be changed since it’s an extension on ApolloCall which accepts more than just queries, but gonna refactor that some day 😄 ) which turns exceptions into a typed result and then we’ve recently-ish added a toEither extension to that so that error handling on the client side can take the #arrow shape as I like to think about it. Example #1, #2, #3, #4.Stylianos Gakis
09/12/2022, 9:21 AMMatti MK
09/12/2022, 9:22 AMApolloResponse
and bumped into this: https://github.com/HedvigInsurance/android/commit/c9a8066ac12072ec90c00999530581f216a7b43dMatti MK
09/12/2022, 9:28 AMsafeQuery
extension as well. I tried to see if you do more granular error handling , such as dealing with 401 / Unauthorized
but I guess you don’t treat those specifically?Matti MK
09/12/2022, 9:34 AMStylianos Gakis
09/12/2022, 9:34 AM