base_query_with_payload.rb 511 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. # Inherit from this class to define Queries that receive an auto-generated payload type
  4. # for the fields they declare, rather than a single explicit type.
  5. class BaseQueryWithPayload < BaseQuery
  6. extend GraphQL::Schema::Member::HasFields
  7. extend GraphQL::Schema::Resolver::HasPayloadType
  8. description 'Base class for queries that auto-generates a payload object for the declared fields'
  9. end
  10. end