Kimblis
Kimblis3y ago

Prisma+TRPC monorepo

Hey, so we have a monorepo with 3 backend services and 3 frontend services. It looks like the following: - Content frontend - Content backend - Teacher backend - Teacher frontend .... The problem we are facing: If we want from frontend to interact with 2 backends or from 1 backend to another backend. The easier example would be the second one. For example I try to communicate with content backend from my teacher backend. I get the errors when I try to build teacher backend since it knows only about the schema it has and the prisma client is being generated from that schema, so when it imports router from content backend- it goes through all routers and their imports, where they import things from content-backend prisma client (which looks different than teachers client :/ )
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?