1.

Point out the wrong statement.(a) You cannot query for a node in the children field to find its parent node only(b) You can query for a node in the children field to find its parent node as well as its siblings(c) You can query for a node in the children field to find its siblings only(d) None of the mentionedI got this question in my homework.My question is from Model Tree Structures in section Data Models of MongoDB

Answer» CORRECT option is (b) You can query for a NODE in the children field to find its parent node as WELL as its siblings

The explanation is: The Child References pattern PROVIDES a suitable solution to tree storage as long as no operations on subtrees are NECESSARY.


Discussion

No Comment Found

Related InterviewSolutions