Closed ArkasDev closed 1 year ago
Hello there ArkasDev 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
I solved this problem using @brakebein/prisma-generator-nestjs-dto
generator.
generator model {
provider = "prisma-generator-nestjs-dto"
output = "./model"
outputToNestJsResourceStructure = "false"
flatResourceStructure = "false"
exportRelationModifierClasses = "true"
reExport = "false"
createDtoPrefix = "Create"
updateDtoPrefix = "Update"
dtoSuffix = "Dto"
entityPrefix = ""
entitySuffix = ""
classValidation = "false"
fileNamingStyle = "camel"
noDependencies = "true"
outputType = "class"
definiteAssignmentAssertion = "false"
requiredResponseApiProperty = "true"
prettier = "true"
}
I use Prisma as ORM service. Prisma provides its own schema for the model. Of course I want to use this model in the api interface. Unfortunately this is not recognized as is present just as "string".
Is it possible to use the Prisma model with tsoa?
user-controller.ts
prisma.schema