@@ -141,13 +141,13 @@ defmodule Absinthe.Phoenix.Channel do
141141
142142 { { :ok , % { subscriptionId: topic } } , socket }
143143
144- { :more , % { "subscribed" => topic } , continuation , context } ->
144+ { :more , % { "subscribed" => topic } , continuations , context } ->
145145 reply ( socket_ref ( socket ) , { :ok , % { subscriptionId: topic } } )
146146
147147 pubsub_subscribe ( topic , socket )
148148 socket = Absinthe.Phoenix.Socket . put_options ( socket , context: context )
149149
150- handle_subscription_continuation ( continuation , topic , socket )
150+ handle_subscription_continuation ( continuations , topic , socket )
151151
152152 { :noreply , socket }
153153
@@ -159,13 +159,13 @@ defmodule Absinthe.Phoenix.Channel do
159159 socket = Absinthe.Phoenix.Socket . put_options ( socket , context: context )
160160 { { :error , reply } , socket }
161161
162- { :more , % { data: _ } = reply , continuation , context } ->
162+ { :more , % { data: _ } = reply , continuations , context } ->
163163 id = new_query_id ( )
164164
165165 socket =
166166 socket
167167 |> Absinthe.Phoenix.Socket . put_options ( context: context )
168- |> handle_continuation ( continuation , id )
168+ |> handle_continuation ( continuations , id )
169169
170170 { { :ok , add_query_id ( reply , id ) } , socket }
171171
@@ -178,8 +178,8 @@ defmodule Absinthe.Phoenix.Channel do
178178 { module , fun } = pipeline
179179
180180 case Absinthe.Pipeline . run ( document , apply ( module , fun , [ schema , options ] ) ) do
181- { :ok , % { result: % { continuation: continuation } = result , execution: res } , _phases } ->
182- { :more , Map . delete ( result , :continuation ) , continuation , res . context }
181+ { :ok , % { result: % { continuations: continuations } = result , execution: res } , _phases } ->
182+ { :more , Map . delete ( result , :continuations ) , continuations , res . context }
183183
184184 { :ok , % { result: result , execution: res } , _phases } ->
185185 { :ok , result , res . context }
@@ -215,16 +215,16 @@ defmodule Absinthe.Phoenix.Channel do
215215 |> Absinthe.Pipeline . for_document ( options )
216216 end
217217
218- defp handle_continuation ( socket , continuation , id ) do
219- case Absinthe.Pipeline . continue ( continuation ) do
220- { :ok , % { result: % { continuation: next_continuation } = result } , _phases } ->
218+ defp handle_continuation ( socket , continuations , id ) do
219+ case Absinthe.Pipeline . continue ( continuations ) do
220+ { :ok , % { result: % { continuation: next_continuations } = result } , _phases } ->
221221 result =
222222 result
223- |> Map . delete ( :continuation )
223+ |> Map . delete ( :continuations )
224224 |> add_query_id ( id )
225225
226226 push ( socket , "doc" , result )
227- handle_continuation ( socket , next_continuation , id )
227+ handle_continuation ( socket , next_continuations , id )
228228
229229 { :ok , % { result: result } , _phases } ->
230230 push ( socket , "doc" , add_query_id ( result , id ) )
@@ -245,15 +245,15 @@ defmodule Absinthe.Phoenix.Channel do
245245
246246 defp add_query_id ( result , id ) , do: Map . put ( result , :queryId , id )
247247
248- defp handle_subscription_continuation ( continuation , topic , socket ) do
249- case Absinthe.Pipeline . continue ( continuation ) do
248+ defp handle_subscription_continuation ( continuations , topic , socket ) do
249+ case Absinthe.Pipeline . continue ( continuations ) do
250250 { :ok , % { result: :no_more_results } , _phases } ->
251251 :ok
252252
253253 { :ok , % { result: result } , _phases } ->
254254 socket = push_subscription_item ( result . data , topic , socket )
255255
256- case result [ :continuation ] do
256+ case result [ :continuations ] do
257257 nil -> :ok
258258 c -> handle_subscription_continuation ( c , topic , socket )
259259 end
0 commit comments