Open terion-name opened 2 years ago
Yeah, this would be pretty good.
In a simple approach, just returning two major objects with their selections would also be sufficient, like:
{
General: { select: { id: true } },
AgeStat: { select: { id: true } }
}
Of course, the above just an example to clarify this idea.
Guys, is there any chance to add this functionality?
Union types are not supported at all :(
Gives:
I understand that unions are not part of prisma, but it would be great to have this for custom queries.
Format TBD, but as a variant something like this: