What's the best way to type a query that returns a Prisma query with includes? I have a lot of nested ones and have changed my schema a few times, so I've needed to update the return type. I'm just using & { includedThing: IncludedThingType }, but that gets messy when nesting the includes. Is there a better way to handle this?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.