const { PrismaClient } = require('@prisma/client'); const prisma = new PrismaClient(); (async () => { const book = await prisma.book.findUnique({ where: { id: 43 } }); console.log('---book 43---'); console.log('id:', book && book.id, 'title:', book && book.title); console.log('genStage:', book && book.genStage); console.log('progress:', book && book.progress); console.log('errorMsg:', (book && book.errorMsg || '').toString().slice(0, 300)); console.log('outlineJson present:', !!(book && book.outlineJson), 'len:', ((book && book.outlineJson) || '').length); console.log('updatedAt:', book && book.updatedAt); await prisma.$disconnect(); })();