1.

Aggregation expressions use ______ path to access fields in the input documents.(a) mpath(b) dbpath(c) lpath(d) fieldThis question was posed to me by my college professor while I was bunking the class.This intriguing question comes from Aggregation Mechanics in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Right choice is (d) FIELD

The best I can explain: To SPECIFY a field path, USE a string that prefixes with a DOLLAR sign $ the field name or the dotted field name, if the field is in embedded DOCUMENT.



Discussion

No Comment Found

Related InterviewSolutions