How in MongoDb to get documents only "top level" , that is, a list of documents without subdocuments ?
For example, there is a collection of Category documents with fields: Id (int), Name (string), Products (Product [])
You need to get a list of all categories, without pulling the list of products for each of them. How to do it?