prisma-nestjs-graphql
prisma-nestjs-graphql copied to clipboard
Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
I want to use the generated dto's in my frontend as well, but the generated DTO models are not pure
my backend generates the DTOs but I also want to make use of them in the frontend wherein i have forms that also use class-validator. However, the generated DTOs make...
GraphQLError: Input Object type BrandFollowUpdateManyMutationInput must define one or more fields.
Hi 👋 I have the following model ```prisma model BrandFollow { id Int @id @default(autoincrement()) /// @HideField({ input: true }) createdAt DateTime @default(now()) /// @HideField({ input: true }) updatedAt DateTime...
Is it possible to generate the _count property as always { nullable:true }? I couldn't find the generator option to do that.
Hello, I am wondering if this could be supported. https://docs.nestjs.com/graphql/extensions
### schema.prisma ### expected output is this possible? Thank you.
First of all, thank you for creating this awesome plugin. It helps a lot. 👍 Here is my question Prisma Schema ``` model Post { id Int @id @db.UnsignedInt @default(autoincrement())...
Is there a reason why enums are destructured in the `ObjectType` ? ```typescript export enum MediaType { MOVIE = "MOVIE", TV = "TV" } registerEnumType(MediaType, { name: 'MediaType', description: undefined...
Is there a way to generate types inside default folder, as in case for 'prisma-client-js' ?
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
I would like to know if i can set a Preffix for each class that is generated for example for model User to be generated as PrefixUser, UpdateOnePrefixUser, etc...