'How to change this code from TypeORM to Prisma?

Could someone help me to change it from TypeORM to Prisma? p.s. Imports are done.

export const listTherapyGuides = async (
  where?: Partial<User>
): Promise<UserWithoutPassword[]> => {
  const therapyGuideQuery = getConnection().manager.find(UserModel, {
    where: { type: "THERAPYGUIDE", deleted: false, ...where }
  });
  return therapyGuideQuery;
};


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source