Class: ActiveGraphql::Client::Adapters::GraphlientMultipartAdapter
- Inherits:
-
Graphlient::Adapters::HTTP::Adapter
- Object
- Graphlient::Adapters::HTTP::Adapter
- ActiveGraphql::Client::Adapters::GraphlientMultipartAdapter
- Defined in:
- lib/active_graphql/client/adapters/graphlient_multipart_adapter.rb
Overview
Adapter enabling multipart data transfer
Instance Method Summary collapse
Instance Method Details
#execute(document:, operation_name:, variables:, context:) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/active_graphql/client/adapters/graphlient_multipart_adapter.rb', line 14 def execute(document:, operation_name:, variables:, context:) response = execute_request( document: document, operation_name: operation_name, variables: variables, context: context ) response.body rescue Faraday::ClientError => e raise Graphlient::Errors::FaradayServerError, e end |