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

Create input with no relations

Open cemhany opened this issue 1 year ago • 1 comments

Hello,

First of all, thanks for the amazing package.

I believe it would be useful to generate an input with no relations defined. We could then extend this input and add the relations we want selectively. Would like to hear your opinion on this.

cemhany avatar Aug 07 '24 09:08 cemhany

Hey @cemhany I guess you can check your *CreateMany*Input input type. I am not sure if that is exactly what you want but in my case it is kinda exactly what you said here. Though I really do not like the naming. It is too confusing IMO. Read this issue for context: https://github.com/unlight/prisma-nestjs-graphql/issues/226.

kasir-barati avatar Dec 03 '24 13:12 kasir-barati

Hey, sorry for the late reply. Yes @kasir-barati that's exactly what I was looking for and I agree that the naming could be better. This input could be defined as *CreateWithoutRelationsInput and perhaps *CreateManyInput could extend this one. Thanks a lot.

cemhany avatar Aug 01 '25 08:08 cemhany