Prisma.skip on deeply nested objects
Hello, is there a way to Prisma.skip deeply nested objects?
In this case:
When territoryId, districtId, and regionId are all undefined, it gives out this as a result:
Normally I would expect it to not consider the territory clause at all since all of it are skipped. For some reason, prisma doesn't skip this and returns null.
In this case:
When territoryId, districtId, and regionId are all undefined, it gives out this as a result:
Normally I would expect it to not consider the territory clause at all since all of it are skipped. For some reason, prisma doesn't skip this and returns null.