I found that predefined route for products has interesting function in middleware maybeApplyLinkFilter: https://github.com/medusajs/medusa/blob/a625bce7b022c28a256f81777b7ebab15ab1d930/packages/medusa/src/api/store/products/middlewares.ts#L33
And I can filter by sales channel id. I've created new module, Brand. And I want to filter product by brand id passed to route brand id. Unfortunately I didn't find any realization of this.
Do we have any change to filter by linked entities?