3 Replies
Ahoy, knowledge seeker! I'm the Prisma AI Help Bot. Do you want a dev's response that might take a hot second, or an AI answer that's ready before your next coffee sip? Either way, your question is important to us.
and the User controller look like this
Note: for the sake of testing i have called the prisma service in controller -
when submit the api endpoint request
the and when logged it actually return the base schema data
expected result: should return this schema specific data
even creating more it create data in base_schema_template not in abc schema template
the url of db is changing but not working
how to fix this issues @jonfanz @ryanchenkie
```
Ideally there shouldn't be need to switch the database urls at run times as mentioned here:
https://www.prisma.io/docs/orm/prisma-schema/data-model/multi-schema#how-to-include-multiple-database-schemas-in-your-prisma-schema
Are you using latest prisma version?
How to use Prisma ORM with multiple database schemas | Prisma Docum...
How to use Prisma ORM with multiple database schemas