Skip to content

How to filter an array field #556

@raphodn

Description

@raphodn

Hi !

I'm struggling to understand if/how I can filter an array field.

I'm using SQLAlchemy + PostgreSQL, and I have a Product.categories_tags field that looks like this : ["en:beverages", "en:orange-juices].

I would like to be able to filter this field in a simple manner, for example : categories_tags__contains=en:beverages
Is this something feasible ? a possible linked PR : #395

Thanks in advance for your help, I'd be willing to do a PR if needed :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions