Answer the question
In order to leave comments, you need to log in
What is the name of the entity (layer) between the object from the database and the object for the client?
Let's say we pull the user account object from the database, the fields are email, hash, salt, name, createdAt. On the client, you need to give the fields email, name, createdAt. What is the name of this "entity" that filters the fields in the object and gives the client what is needed (that is, email, name, createdAt)?
Answer the question
In order to leave comments, you need to log in
Well, I don’t know about sending it to the client, but DTO is doing the receiving, and the model is working with the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question