For example, if I have a document like this
{
a: 1,
subdoc: {
b: 2,
c: 3
}
}
How can I convert it into a format like this? (without using project
)
{
a: 1,
b: 2,
c: 3
}
See Question&Answers more detail:os