blob: a87fef9fe8ad0a028565a6fca82132c1643a009a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
module Types
class DeploymentsOrderByInputType < BaseInputObject
graphql_name 'DeploymentsOrderByInput'
description 'Values for ordering deployments by a specific field'
argument :created_at,
Types::SortDirectionEnum,
required: false,
description: 'Order by Created time.'
argument :finished_at,
Types::SortDirectionEnum,
required: false,
description: 'Order by Finished time.'
def prepare
raise GraphQL::ExecutionError, 'orderBy parameter must contain one key-value pair.' unless to_h.size == 1
super
end
end
end
|