Skip to content

Commit

Permalink
Fix ActionCable subscriptions channel example
Browse files Browse the repository at this point in the history
Query is the first positional argument for `Schema#execute`, not a key in the second param hash.
  • Loading branch information
zavan authored Oct 31, 2023
1 parent 1d7d5e0 commit 0c7fad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/subscriptions/action_cable_subscriptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Subscriptions
# }
#
# result = MySchema.execute(
# query: query,
# query,
# context: context,
# variables: variables,
# operation_name: operation_name
Expand Down

0 comments on commit 0c7fad0

Please sign in to comment.