I have 2 Collection A and B:
A : {_id, aField}
B : {_id, bField}
When I insert the B
, A
will update with add new _bField
object field contain of B
doc
A: {
_id:...,
aField:...,
_bField: {
bId: {_id:...., bField:........}
}
}
And then if I insert new more on B
, A
update with the new too.
Please help me.