#Filter for Product by Linked Entity(Brand)

8 messages · Page 1 of 1 (latest)

marble mantle
#

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?

GitHub

The world's most flexible commerce platform. Contribute to medusajs/medusa development by creating an account on GitHub.

quick plaza
#

@marble mantle we're also running into this... did you ever find a solution?

astral hatch
#

@marble mantle @quick plaza Hey ! Someone find a solution ?

quick plaza
#

We haven’t yet

little mantle
#

struggling with the same issue - in general, filtering on linked records (expanded core module) - is this really impossible?..

lost aurora
#

filtering across modules is still not possible (i've seen that in the docs somewhere I don't know if they updated it tho)

solid topaz
#

I would like to do the same. Is there any easy way how to filter products by linked brand? For instance using sdk at storefront or by creating own api?

solid topaz