IBM Interview Question

MongoDB how to get only certain fields