lib/rails/graphql/type/object.rb
# Find a given +object+ and ensures it is an interface
Find a given +object+ and ensures it is an interface
Find a given + object + and ensures it is an interface
def find_interface!(object)
              object = GraphQL.type_map.fetch!(object,
                namespaces: namespaces,
                prevent_register: self,
              ) unless object.is_a?(Module) && object < Type::Interface
              return object if object.try(:interface?)
              raise ArgumentError, <<~MSG.squish
                The given "#{object}" is not a valid interface.
              MSG
            end
def find_interface! ( object ) object = GraphQL . type_map . fetch! ( object , namespaces : namespaces , prevent_register : self , ) unless object . is_a? ( Module ) && object < Type :: Interface return object if object . try ( :interface? ) raise ArgumentError , <<~MSG . squish 
                The given " #{ object } " is not a valid interface.
               MSG end
Find a given +object+ and ensures it is an interface
Find a given + object + and ensures it is an interface
object