Module: Hai::GraphQL::ClassMethods
- Defined in:
- lib/hai/graphql.rb
Instance Method Summary collapse
Instance Method Details
#hai_mutation(*models) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/hai/graphql.rb', line 45 def hai_mutation(*models) models.each do |model| Hai::GraphQL::CreateMutations.add(self, model) Hai::GraphQL::UpdateMutations.add(self, model) Hai::GraphQL::DeleteMutations.add(self, model) end end |
#hai_query(*models) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/hai/graphql.rb', line 38 def hai_query(*models) models.each do |model| Hai::GraphQL::ReadQueries.add(self, model) Hai::GraphQL::ListQueries.add(self, model) end end |