prisma-nestjs-graphql icon indicating copy to clipboard operation
prisma-nestjs-graphql copied to clipboard

UpdateInput not have id field

Open kerituni12 opened this issue 3 years ago • 3 comments

Hi, When i use status_id Int @id @default(autoincrement()) it not generates id field in update input file. But status_id Int @id @default(cuid()) works

kerituni12 avatar Feb 22 '22 02:02 kerituni12

List of fields is coming from prisma, see this issue https://github.com/prisma/prisma/issues/6967

unlight avatar Feb 22 '22 07:02 unlight

@unlight could you please give an example of how to make an update?

Musbell avatar Jul 02 '22 19:07 Musbell

@Musbell Update of what?

I mentioned bug in prisma where id field with @default(autoincrement()) is not generating in UpdateInput class, but it does for string and for default(0)

unlight avatar Jul 02 '22 21:07 unlight