node-express-mongodb-jwt-rest-api-skeleton icon indicating copy to clipboard operation
node-express-mongodb-jwt-rest-api-skeleton copied to clipboard

Filter on Sub Documents

Open baralogi opened this issue 3 years ago • 0 comments

how to filter data in subdocument, I have data like

"tournament": {
                "_id": "61b856a44509680799f619b6",
                "name": "Turnamen Amatir",
                "organizer": "Club Golf Indonesia",
                "venue": "Bukit Darmo Golf",
                "date": "2022-02-10T08:04:42.558Z",
                "tournamentPicture": "tournamentPicture-1640157632545.png"
            },
            "user": {
                "_id": "5aa1c2c35ef7a4e97b5e995a",
                "name": "Super Administrator",
                "city": "Bucaramanga",
                "country": "Colombia"
            },
            "pointTotal": 1

I want to filter tournament name, I tried by writing param fields=tournament.name&filter=Turnamen Amatir but always fail

baralogi avatar Feb 11 '22 01:02 baralogi