view model

Data shaped exactly for one screen, with the field names and values the frontend needs and nothing else.

In more detail

Instead of passing an internal service record such as raw_user_id and email_addr to the browser, the BFF maps it to id, email and avatarUrl. This hides internal details and lets the backend change without breaking the UI.

Related terms

Taught in

References