organization.rb 413 B

123456789101112131415
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. class Organization < BaseQuery
  4. description 'Fetch an organization by ID'
  5. argument :organization, Gql::Types::Input::Locator::OrganizationInputType, description: 'Organization locator'
  6. type Gql::Types::OrganizationType, null: false
  7. def resolve(organization:)
  8. organization
  9. end
  10. end
  11. end