Module: Rails::GraphQL::Channel

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails/graphql/railties/channel.rb

Overview

GraphQL Channel

The channel helper methods that allow GraphQL to be performed on an Action Cable channel. It also provides structure fro working with subscriptions

Instance Method Summary collapse

Instance Method Details

#execute(data) ⇒ Object

The default action of the helper to perform GraphQL requests. Any other action cab be added and use the granular methods here provided



25
26
27
# File 'lib/rails/graphql/railties/channel.rb', line 25

def execute(data)
  transmit(gql_request_response(data))
end