lib/rails/graphql/request/strategy.rb
# Only store a given +value+ for a given +field+ if it is not set yet
Only store a given +value+ for a given +field+ if it is not set yet
Only store a given + value + for a given + field + if it is not set yet
def safe_store_data(field, value = nil)
          rescue_with_handler(field: field) do
            value ||= yield if block_given?
            @data_pool[field] ||= value unless value.nil?
          end
        end
def safe_store_data ( field , value = nil ) rescue_with_handler ( field : field ) do value ||= yield if block_given? @data_pool [ field ] ||= value unless value . nil? end end
Only store a given +value+ for a given +field+ if it is not set yet
Only store a given + value + for a given + field + if it is not set yet
field
value