lib/rails/graphql/type_map.rb
# Same as +fetch+ but it will raise an exception or retry depending if the
# base type was already loaded or not
Same as +fetch+ but it will raise an exception or retry depending if the
base type was already loaded or not
Same as + fetch + but it will raise an exception or retry depending if the base type was already loaded or not
def fetch!(*args, base_class: :Type, **xargs)
        xargs[:base_class] = base_class
        result = fetch(*args, **xargs)
        return result unless result.nil?
        raise ArgumentError, <<~MSG.squish if base_classes[base_class]
          Unable to find #{args.first.inspect} #{base_class} object.
        MSG
        GraphQL.const_get(base_class).eager_load!
        fetch!(*args, **xargs)
      end
def fetch! ( * args , base_class : :Type , ** xargs ) xargs [ :base_class ] = base_class result = fetch ( * args , ** xargs ) return result unless result . nil? raise ArgumentError , <<~MSG . squish if base_classes [ base_class ] 
          Unable to find  #{ args . first . inspect } #{ base_class }  object.
         MSG GraphQL . const_get ( base_class ) . eager_load! fetch! ( * args , ** xargs ) end
Same as +fetch+ but it will raise an exception or retry depending if the
base type was already loaded or not
Same as + fetch + but it will raise an exception or retry depending if the base type was already loaded or not
args
base_class
xargs