debian-mirror-gitlab/app/graphql/types/user_type.rb
2019-05-18 00:54:41 +05:30

16 lines
385 B
Ruby

# frozen_string_literal: true
module Types
class UserType < BaseObject
graphql_name 'User'
authorize :read_user
present_using UserPresenter
field :name, GraphQL::STRING_TYPE, null: false
field :username, GraphQL::STRING_TYPE, null: false
field :avatar_url, GraphQL::STRING_TYPE, null: false
field :web_url, GraphQL::STRING_TYPE, null: false
end
end