battlesheep123
battlesheep123
Explore posts from servers
PPrisma
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
PPrisma
Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
Could you please provide the complete code line? Not sure exactly what you mean. Thanks man!
16 replies
PPrisma
Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
Could this be a "works as designed"? Sounds very much like this when looking at the docs: https://www.prisma.io/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types
16 replies
PPrisma
Created by battlesheep123 on 5/15/2024 in #help-and-questions
Relation not included in the generated types
I did, but it doesn't change anything.
16 replies