How to get only matched data in node.js using mongoose?

To extract only some elements of an array you have to used $filter.

I do not know how $filter is used in mongoose.

Documents as images are useless for us to help you. Time is limited and typing document is long. We can cut-n-paste easily when publish as indicated in Formatting code and log snippets in posts