Module: Rails::GraphQL::Helpers::Unregisterable

Included in:
Source::Base
Defined in:
lib/rails/graphql/helpers/unregisterable.rb

Overview

Helper that allows unregisterable objects to be both identified and removed from type map

Instance Method Summary collapse

Instance Method Details

#unregister!Object

Simply remove itself from the type map



10
11
12
# File 'lib/rails/graphql/helpers/unregisterable.rb', line 10

def unregister!
  GraphQL.type_map.unregister(self)
end