adminjs-prisma
adminjs-prisma copied to clipboard
isId in option.properties does not work
Bug description
I tried to set which field in my database model should be considered as primary key using:
{
resource: { model: dmmf.modelMap.User, client: prisma },
options: {
properties: {
userId: { isId: true }
}
}
}
but it seems not working because resource properties are generated from prisma model without specified options
Environment & setup
OS: macOS Monterey Database: PostgreSQL Node.js version: 16.14.2
AdminJS Version
[email protected] adminjs/[email protected]
Prisma Version
Thanks for looking into it, would be really great to fix
@dziraf could you take a look?