Complicated recursive types for self-relations in prisma models...
Prisma documentation says that types only contain the model's scalar fields, but doesn't account for any relations, thus you must use GetPayload.
Prisma Model:
Default type produced:
Modified with GetPayload
which just means:
But children isn't recursive in this type ^^^ because it doesn't contain relations right?
Correct way?
Default type produced:
Modified with GetPayload
Recursive - Is this the right way?
Prisma Model:
Default type produced:
Modified with GetPayload
which just means:
But children isn't recursive in this type ^^^ because it doesn't contain relations right?
Correct way?
Default type produced:
Modified with GetPayload
Recursive - Is this the right way?
