Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base.rb « timelogs « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9859f0e7d79d953a34bc964e11c73964d4c8c6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Mutations
  module Timelogs
    class Base < Mutations::BaseMutation
      field :timelog,
            Types::TimelogType,
            null: true,
            description: 'Timelog.'

      private

      def response(result)
        { timelog: result.payload[:timelog], errors: result.errors }
      end
    end
  end
end