Hey! I'm currently making my product transition fr...
# orm-help
s
Hey! I'm currently making my product transition from prisma v1 to prisma v2 and I'm feeling problems with 1-1 relation. I've a table project, connected to user table in two fields (manager and financialmanager). When I do findUnique in project model it return me a error saying "Project.manager" does not exists in database. How can I preserve names in this case?
n
Hey Simão, did you already upgrade your Prisma layer and are now using the Prisma 2 Client? Can you maybe also share your
Project
and
User
models the way they looked in the Prisma 1 schema and how they look in the Prisma 2 schema?
s
Hello Nikolas. I already made the changes, but when I do findUnique in project model, it returns the error
n
Ah I see, thanks for the follow up 🙂 can you please also share the exact query that's causing the problem and the full error message? We need a bit more context about your issue to be able to help! 🙏