app/graphql/gql/entry_points/queries.rb
# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
module Gql::EntryPoints
class Queries < Gql::Types::BaseObject
# Don't implement the nodes query interface for security reasons.
# IDs can be generated on the client side and used to fetch all records from the database.
description 'All available queries'
Mixin::RequiredSubPaths.eager_load_recursive Gql::Queries, "#{__dir__}/../queries/"
Gql::Queries::BaseQuery.descendants.reject { |klass| klass.name.include?('::Base') }.each do |klass|
klass.register_in_schema(self)
end
end
end