user.rb 360 B

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