mutations.rb 445 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::EntryPoints
  3. class Mutations < Gql::Types::BaseObject
  4. description 'All available mutations'
  5. Mixin::RequiredSubPaths.eager_load_recursive Gql::Mutations, "#{__dir__}/../mutations/"
  6. Gql::Mutations::BaseMutation.descendants.reject { |klass| klass.name.include?('::Base') }.each do |klass|
  7. klass.register_in_schema(self)
  8. end
  9. end
  10. end