good night, I'm having trouble merging an object inside another
my object currently.
{
"id":7,
"name":"Pedroo",
"email":"pedro@hotmail.com",
"cognitoSub":"9162b350-d19db1b3f",
"phoneNumber":"+5521997221764",
"photo":null,
"createdAt":"2022-10-21T14:48:36.000Z",
"updatedAt":"2022-10-21T14:48:36.000Z",
"Account":{
"userId":7
}
}
and I would like to leave it in a single object
example:
{
"id":7,
"name":"Pedroo",
"email":"pedro@hotmail.com",
"cognitoSub":"9162b350-d19db1b3f",
"phoneNumber":"+5521997221764",
"photo":null,
"createdAt":"2022-10-21T14:48:36.000Z",
"updatedAt":"2022-10-21T14:48:36.000Z",
"userId":7
}