I am trying to get the most optimal query in MongoDB that works. I tried repository approach but i think it\'s not adequate for my need, then i manually implemented my own q