I am migrating to Prisma v 1.17. In previous versi...
# orm-help
z
I am migrating to Prisma v 1.17. In previous versions the data models generated data schemas and associated filters, pagination, etc. Do I now need to write all of this by hand in my schema.graphql file?
n
maybe this helps: https://www.prisma.io/forum/t/help-understanding-the-architecture-when-using-prisma/4527?u=nilan it seems you are conflating
prisma.graphql
with
schema.graphql
.
z
Thank you @nilan. So I think I do understand the difference (that diagram is very helpful) but I no longer have a ./generated/prisma.graphql. I was thinking that was for the old version but rethinking about it makes me realize that is not likely the case. So that being said, should I still have the post-deploy hook in my prisma/prisma.yml?
Copy code
hooks:
  post-deploy:
    - graphql get-schema --project database
Nevermind @nilan, I got it working with
Copy code
- generator: graphql-schema
      output: ../src/generated
. Thank you!
👍 1