lib/rails/graphql/source/scoped_arguments.rb
def attach_scoped_arguments_to(*fields, safe: true)
            fields = fields.flatten.compact
            return if fields.blank?

            scoped_arguments.each_value do |argument|
              fields.each do |item|
                item.ref_argument(argument) if argument.attach_to?(item)
              rescue DuplicatedError
                raise unless safe
              end
            end
          end
# Helper method to attach the scoped arguments to a given +field+
Helper method to attach the scoped arguments to a given +field+
Helper method to attach the scoped arguments to a given + field +
def attach_scoped_arguments_to(*fields, safe: true)
            fields = fields.flatten.compact
            return if fields.blank?
            scoped_arguments.each_value do |argument|
              fields.each do |item|
                item.ref_argument(argument) if argument.attach_to?(item)
              rescue DuplicatedError
                raise unless safe
              end
            end
          end
def attach_scoped_arguments_to ( * fields , safe : true ) fields = fields . flatten . compact return if fields . blank? scoped_arguments . each_value do | argument | fields . each do | item | item . ref_argument ( argument ) if argument . attach_to? ( item ) rescue DuplicatedError raise unless safe end end end
Helper method to attach the scoped arguments to a given +field+
Helper method to attach the scoped arguments to a given + field +
fields
safe