Class: HQ::GraphQL::RootMutation
- Defined in:
- lib/hq/graphql/root_mutation.rb
Constant Summary
Constants included from Scalars
Scalars::Object, Scalars::UUID
Class Method Summary collapse
Methods inherited from Object
authorize_action, authorized?, to_graphql, with_model
Methods included from ObjectAssociation
#belongs_to, #has_many, #reflect_on_association
Methods included from ActiveRecordExtensions
Class Method Details
.inherited(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/hq/graphql/root_mutation.rb', line 6 def self.inherited(base) super base.class_eval do lazy_load do ::HQ::GraphQL.resources.each do |type| type.mutation_klasses.each do |mutation_name, klass| field mutation_name, mutation: klass end end end end end |