MongoDB – How to select fields conditionally
I am new to MongoDB. I have a VIEW created on a collection, I need to make a modification to this VIEW. Say we have a collection CollectionName. It has an array field aArray. This arrays has 2 fields, arrayField1…