Can't load script M121

Hi all,
I know this is basic, but I really can’t figure out how to load my aggregation solution for testing in the mongo shell, am making use of windows

// here is my solution

Hey @olami123

It is best not to post answers in the forums as it is against the guidelines. [NOTICE] Please do not post detailed code or potential answers in the forums

However you could just copy and paste what you have there in the mongo shell and access it like any other variable by its name you assigned pipeline

// mongo shell
var pipeline = [...];
db.collection.aggregate(pipeline);
// results!
1 Like

thanks for the reply, and i have already flagged the post to be deleted

1 Like