# frozen_string_literal: true module GraphQL module Types module Relay module DefaultRelay def self.extended(child_class) child_class.default_relay(true) end def default_relay(new_value) @default_relay = new_value end def default_relay? if defined?(@default_relay) @default_relay elsif self.is_a?(Class) superclass.respond_to?(:default_relay?) && superclass.default_relay? else false end end end end end end