Hello, is there a way to use a field in an update ...
# orm-help
f
Hello, is there a way to use a field in an update statement? e.g.: update: { counter: counter + 1}
r
Hey @Florian Horn 👋 Currently Prisma doesn’t yet support this way of updating a field and the currently we are working on this as in this request here. As a workaround, you would need to either use 2 queries one for fetching the value and then updating or use a raw query via
prisma.queryRaw
.