Is your feature request related to a problem? Please describe.
Currently, we use the prisma-generate-schema package to generate a Prisma schema based on the datamodel without a live endpoint. While this solution is awesome because we don't need a running service anymore but it is also another abstraction which makes tracking a bunch of issues difficult - because we now have two places to check.
Describe the solution you'd like
We can use a flag to signal to prisma generate command to not use the prisma-generate-schema and use a live endpoint or pre-generated schema instead. Example: prisma generate --use-endpoint.
Additional context
We need to test that how this feature lines up with known API differences https://github.com/prisma/prisma/issues/3185
Because things like executeRaw are artificially hidden in schema generator and might be exposed when we bypass it.
I really like this idea. How about the following syntax/behavior:
prisma generateendpoint in prisma.yml: prisma generate --endpointprisma generate --endpoint http://some-server:4466The syntax prisma generate --endpoint <url> is moved to this feature request:- https://github.com/prisma/prisma/issues/3206
This fix is available in the stable version - 1.18.1 - npm install -g prisma 馃帀
Most helpful comment
I really like this idea. How about the following syntax/behavior:
prisma generateendpointinprisma.yml:prisma generate --endpointprisma generate --endpoint http://some-server:4466