How to use conditions inside projections.computed?

Hi @Srujana_Bolli, Welcome to the MongoDB community forum,

It would be helpful if you post a sample document and query in regular JS syntax.

You can also specify the language tag in your post that you have posted this query. So related expert can help you.