lib/rails/graphql/request.rb
# Build the payload to be sent to the log
Build the payload to be sent to the log
Build the payload to be sent to the log
def log_payload(document, data)
          name = @operation_name.presence
          name ||= operations.keys.first if operations.size.eql?(1)
          map_variables = args.to_h if args.each_pair.any?
          data.merge!(
            name: name,
            cached: false,
            document: document,
            variables: map_variables,
          )
        end
def log_payload ( document , data ) name = @operation_name . presence name ||= operations . keys . first if operations . size . eql? ( 1 ) map_variables = args . to_h if args . each_pair . any? data . merge! ( name : name , cached : false , document : document , variables : map_variables , ) end
Build the payload to be sent to the log
Build the payload to be sent to the log
document
data