battlesheep123
Explore posts from serversPPrisma
•Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
Ohh that's great! Thank you very much
16 replies
PPrisma
•Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
And you still get code completion if it's typed automatically?
16 replies
PPrisma
•Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
So you are saying I shouldn't type
const entries
myself and just keep it as const entries = await prisma.entry.findMany({ ... })
?16 replies
PPrisma
•Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
Ahh, I see... do you mean?
const entries: Prisma.EntryGetPayload<{ include: { projects: true } }>[] = await prisma.entry.findMany({ ... })
16 replies