1
      await this.prisma.fee_collections.findMany({
        where: whereClauseWithTransactionDateCondition,
        include: {
            student_master: {
                select: {
                    fee_start_month: true,
                }
            }
        }
    });

私のDBでは、fee_start_monthカラムスキーマ:

Fee_start_month DateTime? @db.日付

fee_start_month 列では、一部の値が null であるため、prisma2 はそれらのレコードをフェッチできず、例外がスローされます。

生成されたエラー: [Nest] 21275 - 15/03/2021、13:09:21 [ExceptionsHandler] 無効なprisma.fee_collections.findMany()呼び出し:

タイプの範囲外の値。列fee_start_monthには、日または月のいずれかがゼロに設定された無効な DateTime 値が含まれていました。+3337ms

4

0 に答える 0