File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
libraries/apollo-runtime/src/commonMain/kotlin/com/apollographql/apollo/internal/incremental Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -7,25 +7,12 @@ internal sealed interface IncrementalDeliveryProtocolImpl {
77
88 fun newIncrementalResultsMerger (): IncrementalResultsMerger
99
10- /* *
11- * Format specified in this historical commit:
12- * https://github.com/graphql/graphql-spec/tree/48cf7263a71a683fab03d45d309fd42d8d9a6659/spec
13- *
14- * Only `@defer` is supported with this format.
15- *
16- * This is the default.
17- */
18- object Defer20220824 : IncrementalDeliveryProtocolImpl {
10+ object GraphQL17Alpha2 : IncrementalDeliveryProtocolImpl {
1911 override val acceptHeader: String = " multipart/mixed;deferSpec=20220824, application/graphql-response+json, application/json"
2012
2113 override fun newIncrementalResultsMerger (): IncrementalResultsMerger = GraphQL17Alpha2IncrementalResultsMerger ()
2214 }
2315
24- /* *
25- * Newer format as implemented by graphql.js version `17.0.0-alpha.9`.
26- *
27- * Both `@defer` and `@stream` are supported with this format.
28- */
2916 object GraphQL17Alpha9 : IncrementalDeliveryProtocolImpl {
3017 // TODO To be agreed upon with the router and other clients
3118 override val acceptHeader: String =
@@ -37,6 +24,6 @@ internal sealed interface IncrementalDeliveryProtocolImpl {
3724
3825internal val HttpNetworkTransport .IncrementalDeliveryProtocol .impl: IncrementalDeliveryProtocolImpl
3926 get() = when (this ) {
40- HttpNetworkTransport .IncrementalDeliveryProtocol .GraphQL17Alpha2 -> IncrementalDeliveryProtocolImpl .Defer20220824
27+ HttpNetworkTransport .IncrementalDeliveryProtocol .GraphQL17Alpha2 -> IncrementalDeliveryProtocolImpl .GraphQL17Alpha2
4128 HttpNetworkTransport .IncrementalDeliveryProtocol .GraphQL17Alpha9 -> IncrementalDeliveryProtocolImpl .GraphQL17Alpha9
4229 }
You can’t perform that action at this time.
0 commit comments