My generated files never update. Do I need to do s...
# orm-help
m
My generated files never update. Do I need to do something for that to happen?
n
they should update with
prisma deploy
, if that's not the case then you can regenerate them using
graphql prepare
how does your
.graphqlconfig.yml
look like?
m
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
Copy code
> graphql prepare
√ Bindings for project database written to src/generated/prisma.ts
it does regenerate them, but with the old structure... I don't have
Post
left in my datamodel.graphql but it still gets generated
I don't get where it's getting it from
when I search for "Post" in my project I only get hits in the generated
prisma.graphql
and
prisma.ts
files
This is based on typescript-advanced boilerplate
Ok, I have a syntax error somewhere, but it's pretty difficult to tell where:
Copy code
Hooks:
Checking, if schema file changed !
 !    Syntax Error: Expected Name, found }
I actually have no idea where the syntax error is šŸ™‚
n
Ok these are different problems.
Can you provide a reproduction for both in new issues here: https://github.com/graphcool/prisma/issues? šŸ™‚