Created
January 29, 2022 11:40
-
-
Save ianmartorell/1b3ff6e055189ce780cb4151736ab6b0 to your computer and use it in GitHub Desktop.
Prisma extended type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const extendedOrderArgs = Prisma.validator<Prisma.OrderArgs>()({ | |
include: { | |
orderStatus: true, | |
orderItems: { | |
include: { | |
orderItemStatus: true, | |
}, | |
}, | |
}, | |
}); | |
type ExtendedOrder = Prisma.OrderGetPayload<typeof extendedOrderArgs>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment