```async findUnique<T extends Prisma.UserArgs.i...
# orm-help
a
Copy code
async findUnique<T extends Prisma.UserArgs.include>(
    where: Prisma.UserWhereUniqueInput,
    include?: T
): Promise<Prisma.UserGetPayload<{ include: T }>> {
    // TODO: Fetch user from Azure AD B2C
    return this.prisma.user.findUnique({
        where: where,
        include: include ?? userWithRolesAndAvatarAndPosters.include,
        // ...userWithRolesAndAvatarAndPosters,
    })
}
Any idea of how to make the return type of my function dynamic based upon the include argument?
🥲 1