Closed willbrowningme closed 7 years ago
Hi @tttwb, It does not support whereIn for now. But maybe you can try custom filter.
https://github.com/selahattinunlu/laravel-api-query-builder/wiki/Creating-Custom-Filter Let me know please whether 'custom filters' solved your issue.
Also, I will work to add whereIn query support.
Hi again @tttwb
I added whereIn and whereNotIn support. You can check this out https://github.com/selahattinunlu/laravel-api-query-builder/commit/ea5432334c0a31465777480860e1c6016670d5ec
Please run "composer update" to get changes.
And I added some examples to use it. https://github.com/selahattinunlu/laravel-api-query-builder/wiki/Other-Examples#where-queries You can see it bottom of "Where Queries" section.
When trying to pass an array of data as a query parameter for example:
It throws the error:
Is there a way to tell it to ignore the '[]' after countries so that the array can be passed correctly and then used as a custom filter as below: