Method: GraphQL::Types::Relay::ConnectionBehaviors::ClassMethods#reauthorize_scoped_objects

Defined in:
lib/graphql/types/relay/connection_behaviors.rb

#reauthorize_scoped_objects(new_value = nil) ⇒ Object

The connection will skip auth on its nodes if the node_type is configured for that



101
102
103
104
105
106
107
108
109
110
111
# File 'lib/graphql/types/relay/connection_behaviors.rb', line 101

def reauthorize_scoped_objects(new_value = nil)
  if new_value.nil?
    if @reauthorize_scoped_objects != nil
      @reauthorize_scoped_objects
    else
      node_type.reauthorize_scoped_objects
    end
  else
    @reauthorize_scoped_objects = new_value
  end
end