From 0c7fad024c6c10c2b807f5e41fb36ad459ad255d Mon Sep 17 00:00:00 2001 From: Felipe Zavan Date: Tue, 31 Oct 2023 12:14:47 +0000 Subject: [PATCH] Fix ActionCable subscriptions channel example Query is the first positional argument for `Schema#execute`, not a key in the second param hash. --- lib/graphql/subscriptions/action_cable_subscriptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphql/subscriptions/action_cable_subscriptions.rb b/lib/graphql/subscriptions/action_cable_subscriptions.rb index cb2ec270e1..c58d8f7c29 100644 --- a/lib/graphql/subscriptions/action_cable_subscriptions.rb +++ b/lib/graphql/subscriptions/action_cable_subscriptions.rb @@ -35,7 +35,7 @@ class Subscriptions # } # # result = MySchema.execute( - # query: query, + # query, # context: context, # variables: variables, # operation_name: operation_name