Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support FilterableField on array fields #301

Open
rostaingc opened this issue Sep 19, 2024 · 0 comments
Open

Support FilterableField on array fields #301

rostaingc opened this issue Sep 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rostaingc
Copy link

Is your feature request related to a problem? Please describe.

I have a column defined as

@Column({ type: 'text', array: true, default: [] })
userIDs: string[]

I would like to filter my entity based on values inside this array.

But FilterableField does not support text array columns.

Have you read the Contributing Guidelines?

yes

Describe the solution you'd like
Be able to add the FilterableField(() => [String]) decorator on that field.

Describe alternatives you've considered
Currently I have changed my column to a simple text and the userIDs set to a string type.
I ve added FilterableField(() => String) and making queries with like '%x%'

Additional context
Add any other context or screenshots about the feature request here.

@rostaingc rostaingc added the enhancement New feature or request label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant