© 2026 Hedgehog Software, LLC
let batch; try { batch = await prisma.reportingBatch.create({ data: { status: "RUNNING", }, }); }
const report = await prisma.reportingBatch.update({ where: { id: batch.id }, data: { report: { create: { url: "www.google.com" }, }, }, include: { report: true }, });
{ id: 20n, createdAt: 2023-01-19T23:24:28.000Z, status: 'RUNNING', report: [ { id: 27n, reportingBatchId: 20n, url: 'https://google.com', } ]
report.length
Array.pop
connect