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

Filtering by array property #102

Open
echernyavsky opened this issue Nov 25, 2020 · 1 comment
Open

Filtering by array property #102

echernyavsky opened this issue Nov 25, 2020 · 1 comment

Comments

@echernyavsky
Copy link

echernyavsky commented Nov 25, 2020

Let say I have the following structure:

public class Company
{
     [Sieve(CanFilter=true, CanSort=true)]
     public IEnumerable<long> CustomerIds { get;set; }
}

How can I filter CustomerIds on contains? As far as I get the default @= works only with strings.
Actually need something like:
?filters=customerIds@=3|18

Thanks in advance!

@hasanmanzak
Copy link
Collaborator

hasanmanzak commented Dec 10, 2020

Possible duplicate of #101. Meanwhile, a Custom Filter Method should do. By the way, @= operator is engineered to work with strings. == operator with OR logic would do also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants