| 12345678910111213 |
- const { PrismaClient } = require('@prisma/client');
- const p = new PrismaClient();
- (async () => {
- const b = await p.book.findUnique({
- where: { id: 43 },
- select: {
- id: true, title: true, description: true, bookScale: true,
- userId: true, genStage: true, progress: true
- }
- });
- console.log(JSON.stringify(b, null, 2));
- await p.$disconnect();
- })();
|