read :last_own_bid do
get? true
not_found_error? false
argument :property_id, :uuid do
allow_nil? false
end
prepare build(sort: [updated_at: :desc], limit: 1)
filter expr(property_id == ^arg(:property_id) and bidder_id == ^actor(:id))
end
read :last_own_bid do
get? true
not_found_error? false
argument :property_id, :uuid do
allow_nil? false
end
prepare build(sort: [updated_at: :desc], limit: 1)
filter expr(property_id == ^arg(:property_id) and bidder_id == ^actor(:id))
end