/// A token which can be used to grant one time access to something in the app
/// e.g. confirming an email, resetting a password
model Token {
id String @id @default(uuid())
/// @Pothos.omit()
tokenHash String
...
The output descriptions contains a line break:
export const TokenObject = definePrismaObject('Token', {
description: 'A token which can be used to grant one time access to something in the app
e.g. confirming an email, resetting a password',
findUnique: ({ id }) => ({ id }),
fields: (t) => ({
id: t.field(TokenIdFieldObject),
tokenHash: t.field(TokenTokenHashFieldObject),
expiresAt
When using multi line docs on models like here:
The output descriptions contains a line break:
which is invalid. Using ` template string escape allows for multi line strings as they are generated, would also solve https://github.com/Cauen/prisma-generator-pothos-codegen/issues/69