rocketraman
08/24/2023, 12:51 PMApolloResponse.operation.variables()
for logging/error reporting purposes would be variables(CustomScalarAdapters.PassThrough)
?mbonnin
08/24/2023, 12:52 PMmbonnin
08/24/2023, 12:53 PMCustomScalarAdapters.Empty
(result will be the same but it's more correct)mbonnin
08/24/2023, 12:53 PMrocketraman
08/24/2023, 12:54 PMrocketraman
08/24/2023, 12:56 PMmbonnin
08/24/2023, 12:56 PMPassThrough
would technically work but I wouldn't really recommend itmbonnin
08/24/2023, 12:56 PMApolloClient
mbonnin
08/24/2023, 12:57 PMApolloClient
completely and substitute your own HTTP client and what notmbonnin
08/24/2023, 12:57 PMapollo-api
instead of apollo-runtime
)rocketraman
08/24/2023, 12:58 PMmbonnin
08/24/2023, 12:59 PMCustomScalarAdapters
and re-use thatrocketraman
08/24/2023, 1:02 PMmbonnin
08/24/2023, 1:04 PMrocketraman
08/24/2023, 1:05 PMconnectTimeoutMillis
in the http network transport?rocketraman
08/24/2023, 1:12 PMOptional
which is likely (and does for me) cause a namespace collision requiring aliasing.mbonnin
08/24/2023, 1:12 PMis there a replacement forIf you're on the JVM you can usein the http network transport?connectTimeoutMillis
apolloClient = ApolloClient.Builder()
.serverUrl(mockServer.url())
.httpEngine(
DefaultHttpEngine(connectTimeout = 10_000, readTimeout = 10_999)
)
.build()
rocketraman
08/24/2023, 1:13 PMmbonnin
08/24/2023, 1:14 PMapolloClient = ApolloClient.Builder()
.serverUrl(mockServer.url())
.httpEngine(
DefaultHttpEngine(10_000)
)
.build()
It's used for both connect and read timeout. The details are a bit hairymbonnin
08/24/2023, 1:14 PMmbonnin
08/24/2023, 1:15 PMLots of nice improvements in 3.Thanks!
the use ofIf you're willing to skip 3.0 and go directly to 4.0 alphas, there's an option to generate builders which might remove some of those optionalswhich is likely (and does for me) cause a namespace collision requiring aliasingOptional
mbonnin
08/24/2023, 1:16 PMrocketraman
08/24/2023, 1:16 PM