N
N
Nam Zanilla2022-01-20 11:25:41
API
Nam Zanilla, 2022-01-20 11:25:41

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

4 answer(s)
W
WapSter, 2022-01-20
@sadsdasdasdsadsadsadsadsa

See what you specifically mean. Most likely DTO

U
Ukrainskiy, 2022-01-20
@Ukrainskiy

Model?

R
Rag'n' Code Man, 2022-01-20
@iDmitriyWinX

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.

V
Vadim, 2022-01-20
@Viji

It's called ORM - Object Relational Mapper

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question