Ticket: Table Join: Get Comments


i read the following thread to find my issue. but I could not: Ticket Get Comments

This is my code. I cant figure out what’s wrong with it.

This is my error.

Please help. Stuck.


Hi @Rashad_Bayram, welcome to the community :wave: .
As it’s already mentioned in the error that

A pipeline stage specification object must contain exactly one field.

But in your case it seems like you have two keys as $lookup: and as:, therefore you might want to shift the as: key in the $lookup object itself and hopefully it will fix the issue.

I hope it helps.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer


Thank you. it worked.