I'm learning Node and I used Spring Boot before where I used Hibernate ORM which enabled me to map objects like
{
name:"John",
salary:50000,
address:{
city: "Houston",
state: "Texas"
}
}
into 2 separate tables for example Employee and Address and insert it. I wonder how it can be done in NodeJS and whats the best practice to map such data.