Skip to content

Instantly share code, notes, and snippets.

@ianmartorell
Created January 29, 2022 11:40
Show Gist options
  • Save ianmartorell/1b3ff6e055189ce780cb4151736ab6b0 to your computer and use it in GitHub Desktop.
Save ianmartorell/1b3ff6e055189ce780cb4151736ab6b0 to your computer and use it in GitHub Desktop.
Prisma extended type
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