IBM interview question

MongoDB how to get only certain fields