Object layer for filter in mongoDB queries