Viszy A
Viszy A
Explore posts from servers
TtRPC
Created by Viszy A on 4/25/2023 in #❓-help
Getting this error: Cannot read properties of undefined (reading 'upsert')
I'm using the T3 Stack. And I'm fairly new to tRPC so I am not sure what this error is caused. I'm getting data from chess.com and monkey type using their APIs, the request is all good, and I'm trying to save the data in a prisma db. In my tRPC function, I'm using one private procedure with a mutation that has 2 upserts that each change 2 different models in prisma. When I try to run it i get this error: Cannot read properties of undefined (reading 'upsert') Also to note, before adding the second upsert, it was working fine. Is the problem using 2 upserts?
3 replies