Ife
05/03/2025, 10:03 AM4..0.0
and have autoPersistedQueries
enabled. We're also trying to use the @defer
directives for some high-latency fields. Now the issue, whilst we can see in the logs the incremental data, e.g the attached, we are not able to capture this in the query response itself. I've pretty much logged everything I possible can, no errors and no deferred data.
Any idea what I should try or where to look?bod
05/03/2025, 10:21 AMIfe
05/03/2025, 1:33 PMtoFlow().collect
handler
.addHttpInterceptor(LoggingInterceptor(log = {
if (isDevEnvironment() && it.contains("operationName", true) || it.contains("data", true)) {
println("GraphQL Client: $it")
}
}))
Ife
05/03/2025, 1:33 PMprintln("FOLLOWERS...:${response.dataOrThrow().user?.onUserDeferFollowers}")
println("POSTS... 2:${response.dataOrThrow().user?.onUserDeferPosts}")
bod
05/03/2025, 7:30 PMIfe
05/03/2025, 8:02 PMIfe
05/03/2025, 8:03 PMbod
05/03/2025, 10:55 PMIfe
05/04/2025, 7:16 AMIfe
05/04/2025, 8:34 AMDefer
keyword was appended to the deferred item but gql seem to be appending it for me which comes as nullbod
05/04/2025, 8:36 AMDefer
keyword?Ife
05/04/2025, 8:37 AM... on Meta @defer {
lastModified
}
}
Ife
05/04/2025, 8:37 AMData(meta=Meta(__typename=Meta, onMeta=OnMeta(lastModified=2025-02-09)), resume=Resume(title=Software Engineer))
Ife
05/04/2025, 8:37 AMIfe
05/04/2025, 8:38 AMIfe
05/04/2025, 8:41 AMDefer
to property namebod
05/04/2025, 8:49 AMonMeta
) and a deferred one onMetaDefer
), to avoid ambiguity. If there's only one fragment, no need to disambiguate.bod
05/04/2025, 8:51 AM@defer
is not yet merged in the GraphQL spec, there has been several versions of the protocol, and Apollo Kotlin implements an early version which is compatible with the Apollo Router. But it may not be compatible with the version your server is running.Ife
05/04/2025, 8:52 AM"accept", "multipart/mixed; deferSpec=20220824"
bod
05/04/2025, 8:53 AMbod
05/04/2025, 8:55 AMIfe
05/04/2025, 8:59 AMcopy operation as curl
?bod
05/04/2025, 9:00 AMIfe
05/04/2025, 9:06 AMbod
05/04/2025, 9:12 AMIfe
05/04/2025, 9:17 AMIfe
05/04/2025, 9:17 AMbod
05/04/2025, 9:20 AMIfe
05/04/2025, 9:23 AMIfe
05/04/2025, 9:25 AMfollowers
in this case. I cant access that in apollo-kotlin, the compiler is showing onUserDeferFollowers
bod
05/04/2025, 9:37 AMIfe
05/04/2025, 9:42 AMbod
05/04/2025, 9:44 AM