I recommend reading this article on GeeksforGeeks: https://www.geeksforgeeks.org/why-do-we-need-dtos-and-interfaces-both-in-nest-js/