Closed SomeUserNameReally closed 9 months ago
with comment directives, like
/// @onDelete(CASCADE)
, set on schema.prisma.
I'm not sure what issue do you report. @onDelete
is a Prisma attribute that should be placed without docs.
"Comment directives" are only used for @TypeGraphQL
ones.
@MichalLytek The main issue here is that we get incorrect code generation on running prisma generate
. I looked at the source and I think this may be a bug with how TS types are generated. Not sure. Either way, I don't think comment directives or Prisma attributes have anything to do with it. Sorry if I wasn't clear on this before.
Unable to reproduce 🔒
Describe the Bug Reference https://github.com/prisma/prisma/issues/18342#issuecomment-1476980186
Running
or equivalent incorrectly generates
prisma/generated/type-graphql/helpers.ts
.The line
at
prisma/generated/type-graphql/helpers.ts
is structured unexpectedly.To Reproduce Generate under these conditions with comment directives, like
/// @onDelete(CASCADE)
, set onschema.prisma
.Expected Behavior Everything generates and runs without errors.
Logs Please ask, I will provide as necessary.
Environment (please complete the following information):
typegraphql-prisma
version 0.27.0