What typescript type for queries that use "include"?
Normal behavior: When my query just returns an object from the database, Wasp automatically includes the proper Typescript type for me, like this:
But if I want to use Prisma's
What to do in this case? I can't for the life of me figure out a good solution.
But if I want to use Prisma's
_include to include related objects, those won't be included in the automatic typescript type.What to do in this case? I can't for the life of me figure out a good solution.