what the right way to increment count of a field i...
# orm-help
h
what the right way to increment count of a field in the database when finding a record? https://stackoverflow.com/questions/69178675/prisma-increase-count-by-1-after-find-query
r
Answered.
h
Copy code
await prisma.project.update({
        where: { id: project.id },
        data: {
            views: {
                increment: 1,
            },
        },
    });
this worked
👍 1
Thank you so much