We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi @Brakebein i used @brakebein/prisma-generator-nestjs-dto": "^1.24.1", then I found the problem "Cannot find name 'BytesDto'".
model AcipImprovementFiles { id Int @id @default(autoincrement()) kind String file Bytes /// @DtoRelationIncludeId acipImprovementId Int @map("acip_improvement_id") acipImprovement AcipImprovement @relation(fields: [acipImprovementId], references: [id]) }
return file type is BytesDto
@ApiProperty({ type: () => BytesDto, }) file!: Buffer;
The text was updated successfully, but these errors were encountered:
I have indeed overlooked the Bytes type for the ApiProperty decorator.
Bytes
The correct type should then look as follows?
@ApiProperty({ type: 'string', format: 'binary', }) file!: Buffer;
Sorry, something went wrong.
yes exactly, file!: Buffer
fix ApiProperty type for Bytes field #64
b256f44
It's fixed in the latest release.
No branches or pull requests
hi @Brakebein i used @brakebein/prisma-generator-nestjs-dto": "^1.24.1", then I found the problem "Cannot find name 'BytesDto'".
return file type is BytesDto
The text was updated successfully, but these errors were encountered: