How to get expected output from MongoDB?
I'm new to MongoDB aggregation. I am not getting desired output The output I'm getting from aggregation:- [ {tweet:{key:value}}, {tweet:{key:value}}, {tweet:{key:value}}, {tweet:{key:value}}, ] but I want the following output from the pipeline:- [ {key:value}, {key:value}, {key:value}, ] and lastly, pipeline…