Hey guys, I’m using type-graphql with prisma (v1.x...
# orm-help
e
Hey guys, I’m using type-graphql with prisma (v1.x). In the prisma datamodel, you can define automatically updated createdAt and updatedAt fields like so:
Copy code
type Account {
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
}
I have the corresponding type-graphql type:
Copy code
@ObjectType()
export class Account {
  @Field()
  createdAt: Date

  @Field()
  updatedAt: Date
}
However, createdAt and updatedAt are never applied to the record. Any ideas?