File size: 295 Bytes
073446b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import prisma from '../prismaClient.js';

async function main() {
  try {
    const product = await prisma.product.findUnique({
      where: { id: 7653 }
    });
    console.log(product);
  } catch (error) {
    console.error(error);
  } finally {
    await prisma.$disconnect();
  }
}

main();