Class: Types::DeploymentsOrderByInputType

Inherits:
BaseInputObject
  • Object
show all
Defined in:
app/graphql/types/deployments_order_by_input_type.rb

Instance Method Summary collapse

Instance Method Details

#prepareObject

Raises:

  • (GraphQL::ExecutionError)


18
19
20
21
22
# File 'app/graphql/types/deployments_order_by_input_type.rb', line 18

def prepare
  raise GraphQL::ExecutionError, 'orderBy parameter must contain one key-value pair.' unless to_h.size == 1

  super
end