when I make a user I want to make a subdocument and when I put the request to Axios to console.log(res.data) I get this the console
my axios request
const UserInfo = {
Name,
Email,
Password,
PhoneNumber,
Likees
}
axios.post('http://localhost:300/Register',UserInfo)
.then(resposne => {
console.log(resposne.data)
})
.catch(err => {
console.log(err.response.data.error);
console.log(err)
})
}
the data I want to see in the console data
how can I access the data inside of my documents and my nested document or how can access the prototype to get all of the objects from there