const { PrismaClient } = require('@prisma/client'); const p = new PrismaClient(); p.match .findMany({ take: 1, include: { homeTeam: true, awayTeam: true } }) .then((r) => console.log('OK', r.length)) .catch((e) => console.error('ERR', e.message)) .finally(() => p.$disconnect());