79435956

Date: 2025-02-13 11:20:47
Score: 4
Natty:
Report link

This works well.

return manager
  .getRepository(SlideshowItemEntity)
  .createQueryBuilder('slideshow_items')
  .softDelete()
  .where('image_id NOT IN (:...imageIDs)', { imageIDs: imageIDs.join(',') })
  .andWhere('slideshow_id = :slideshowID', { slideshowID: slideshowID })
  .execute();

TypeORM Postgres WHERE ANY or IN With QueryBuilder Or Find?

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: 中島悠輔