lib/rails/graphql/directive.rb
def validate_locations!(list)
            list.flatten!
            list.map! { |item| item.to_s.underscore.to_sym }

            invalid = list - VALID_LOCATIONS
            raise ArgumentError, <<~MSG.squish unless invalid.empty?
              Invalid locations for @#{gql_name}: #{invalid.to_sentence}.
            MSG
          end
# Check if the given list the locations are valid
Check if the given list the locations are valid
Check if the given list the locations are valid
def validate_locations!(list)
            list.flatten!
            list.map! { |item| item.to_s.underscore.to_sym }
            invalid = list - VALID_LOCATIONS
            raise ArgumentError, <<~MSG.squish unless invalid.empty?
              Invalid locations for @#{gql_name}: #{invalid.to_sentence}.
            MSG
          end
def validate_locations! ( list ) list . flatten! list . map! { | item | item . to_s . underscore . to_sym } invalid = list - VALID_LOCATIONS raise ArgumentError , <<~MSG . squish unless invalid . empty? 
              Invalid locations for @ #{ gql_name } :  #{ invalid . to_sentence } .
             MSG end
Check if the given list the locations are valid
Check if the given list the locations are valid
list