Aggregate pipeline is not working I tried to run the same code on the terminal and there I am getting the desired output but when running the same code thro