You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: