I know its been several months since this post, but how does someone create API routes if you have hundreds of models? Is there an easier way or a generator?
Hi Sebastian 👋🏽
The API routes defined would be depended on the business logic of your application. However, if you're looking to build a generator, take a look at create-prisma-generator. However, the API for building generators is unofficial and undocumented.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I know its been several months since this post, but how does someone create API routes if you have hundreds of models? Is there an easier way or a generator?
Hi Sebastian 👋🏽
The API routes defined would be depended on the business logic of your application. However, if you're looking to build a generator, take a look at create-prisma-generator. However, the API for building generators is unofficial and undocumented.