Hey, Im running prisma deploy and it only creates ...
# orm-help
a
Hey, Im running prisma deploy and it only creates a prisma.ts. I deleted the past generated folder. When I deployed again it just generated the prisma.ts. Anyone had this issue?
n
what do you expect to happen
a
Sorry new to prisma.. I wanted to regenerate the folder with the prisma.ts and prisma.graphl
n
how does your prisma.yml and .graphqlconfig.yml file look like?
a
Copy code
datamodel: datamodel.graphql

endpoint: <http://localhost:4466>

secret: ‘mysecrete12345’

hooks:
  post-deploy:
    - graphql get-schema --project prisma
    - graphql prepare
and graphql: projects: app: schemaPath: src/schema.graphql extensions: endpoints: default: http://localhost:4000 database: schemaPath: src/generated/prisma.graphql extensions: prisma: database/prisma.yml
Solved it! thanks
n
what is your
prisma version
,
graphql --version
and which version of
prisma-binding
do you use?
a
I was using all the latest versions for each of those. Somewhere I was clearly doing something wrong
n
graphql prepare should not be used with prisma-binding version >= 2.x. Instead, use graphql codegen.
a
Ahh that was it then
n
Where did you find this graphql prepare?
a
I believe I saw it in a post while I was searching, it was related to grapql-cli
n
Oh ok. Let me know if you find the link again 🙂
a
I will 🙂
🙌 1
@nilan Hey man ran into that link from the
graphql-prepare
. Line 31 from the example block: https://www.prisma.io/docs/reference/service-configuration/prisma.yml/overview-and-example-foatho8aip/
💯 1
n
updated!
a
🔥