add commitCreateStakeRemoveRequestMutation
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
module Inputs
|
||||
class CreateStakeOrderAttributesInput < Types::BaseInputObject
|
||||
argument :currency_id, ID, required: true
|
||||
argument :pool_name, String, required: true
|
||||
argument :amount, String, "Amount to be paid", required: true
|
||||
end
|
||||
|
||||
9
app/graphql/inputs/predicate_input.rb
Normal file
9
app/graphql/inputs/predicate_input.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
module Inputs
|
||||
class PredicateInput < Types::BaseInputObject
|
||||
# https://github.com/activerecord-hackery/ransack#search-matchers
|
||||
# add others if necessary
|
||||
argument :eq, String, "Equal", required: false
|
||||
argument :lt, Float, "Less than", required: false
|
||||
end
|
||||
end
|
||||
10
app/graphql/inputs/stake_order_filter_input.rb
Normal file
10
app/graphql/inputs/stake_order_filter_input.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
module Inputs
|
||||
class StakeOrderFilterInput < Types::BaseInputObject
|
||||
StakeOrder.ransackable_attributes.each do |attr|
|
||||
argument attr, PredicateInput, required: false
|
||||
end
|
||||
|
||||
argument :status, [Types::ProcessStatusEnum], required: false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user