T3 API routes and GraphQL
We're building new React/Next front end code. We need to access our legacy Java business layer. In future we expect to build new business logic in Typescript accessing DB with Prisma. So we need a mix of T3/primsa and GraphQL (or OpenAPI / Rest). What is the best code architecture. I am thinking we create tRPC server side routes where we check authorisation etc. then call our GraphQL or access other databases via Prisma. Does this make sense, or this there a best way to mix?
1 Reply
Yes this makes sense