Is it possible to re-generate the `prisma.ts`-File...
# prisma-whats-new
t
Is it possible to re-generate the
prisma.ts
-File?
v
I think itโ€™s re-generated every time you run
prisma deploy
๐Ÿ‘
t
I've test it: nope
I have generated the example. After that I deleted
Post
. Then
prisma deploy
. But there are already
Post
existing..
v
It should read the config from the
.graphqlconfig.yml
, my content is the following:
Copy code
projects:
  app:
    schemaPath: "src/schema.graphql"
    extensions:
      endpoints:
        default: "<http://localhost:4000>"
  database:
    schemaPath: "src/generated/prisma.graphql"
    extensions:
      prisma: database/prisma.yml
      prepare-binding:
        output: src/generated/prisma.ts
        generator: prisma-ts
My project was generated using
graphql-cli create
๐Ÿ‘
t
k. thx!
m
you can use
graphql prepare
t
graphql
?
m
graphql-cli
. It might be already included in the build, otherwise install it internally or globally - both should work afaik.