CS3219-AY2425S1 / cs3219-ay2425s1-project-g33

nus-cs3219-ay2425s1-cs3219-ay2425s1-project-project-template created by GitHub Classroom
MIT License
4 stars 2 forks source link

Add serialisation for request response #54

Open Jajared opened 1 month ago

Jajared commented 1 month ago

Feature: Serialisation

Description

Fortunately (or unfortunately), the backend can still include many improvements for better adherence to type safety. For example, there may be certain instances where we do not want to return certain attributes (such as passwords). While the hacky way now is to label as undefined, nestJS actually offers serialisation which helps to format response objects before sending back to the client. This way, it ensures structured and consistent response. Refer to: NestJs Serialisation

Jajared commented 1 month ago

For now, optional