add create sell and buy crypto order mutations

This commit is contained in:
João Geonizeli
2021-08-15 01:59:59 -03:00
parent 4b1341677f
commit a3d32ee13a
25 changed files with 688 additions and 15 deletions

View File

@@ -6,8 +6,16 @@ module Mutations
input_object_class Types::BaseInputObject
object_class Types::BaseObject
field :errors, [String],
field :errors, [Types::RecordInvalidType],
null: true,
description: "Errors encountered during execution of the mutation."
def current_user
context[:current_user]
end
def decode_id(encoded_id)
GraphQL::Schema::UniqueWithinType.decode(encoded_id).last
end
end
end