트러블슈팅 요약

문제 상황

model User {
  id        BigInt    @id @default(autoincrement())
  ...
}
return this.prisma.user.findMany();
TypeError: Do not know how to serialize a BigInt

문제 원인

JSON.stringify({ id: 1n });
// ❌ TypeError: Do not know how to serialize a BigInt

<aside>

JavaScript Number vs BigInt

해결 방법