Class: Dry::GraphQL::BaseObject
- Inherits:
-
GraphQL::Schema::Object
- Object
- GraphQL::Schema::Object
- Dry::GraphQL::BaseObject
- Defined in:
- lib/dry/graphql/base_object.rb
Overview
Base schema object
Class Method Summary collapse
Class Method Details
.map_from(*associated_classes) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/dry/graphql/base_object.rb', line 7 def self.map_from(*associated_classes) associated_classes.each do |associated_class| ::Dry::GraphQL.register_type_mapping(associated_class, self) end true end |