"Hi all! I’m facing an issue in my NestJS backend with the financialSituation field — the backend expects a single value from a predefined list of choices, but sometimes I need to handle multiple, incompatible values at once. How can I properly manage or validate financialSituation when multiple, non-compatible options might be submitted?"
-
When I put multiple: true I have this err :
{ArgumentfinancialSituation: Invalid value provided. Expected EnumFinancialSituationFilter or FinancialSituation, provided (String, String).}
let [total, data] = include
29 ? await Promise.all([
→ 30 model.count({
select: {
_count: {
select: {
_all: true
}
}
},
where: {
financialSituation: [
"REGULAR",
"PENDING"
]} })