Hi guys, sorry for bothering you, im doing the nextjs course and I have a simple question about this code:
const IssueDetailPage = async ({ params }: Props) => {
const issue = await prisma?.issue.findUnique({
where: { id: parseInt(params.id)}
});
Is a good practice call directly to prisma? I think the front never have to call the bd directly, must go to the backend, I’m wrong?
Thanks all =)