data-hub icon indicating copy to clipboard operation
data-hub copied to clipboard

Feature Request: Filter with Array

Open vinitchopra12 opened this issue 5 years ago • 4 comments

Hello,

I am looking for the solution where I can filter the query with mutliple field records in GrapQL.

Eg: I want to get the products based on the SKU field at a time.

{
    getProductListing(defaultLanguage: "en", filter: "{\"sku\":  {\"$in\":  [\"AB-001\", \"CD-002\", \"EF-003\"]}}"){
    }
}

Is there any way to achieve this. Please advice.

Thanks,

vinitchopra12 avatar May 11 '20 05:05 vinitchopra12

It is not, I requested such a feature but that issue was closed: https://github.com/pimcore/data-hub/issues/81#issuecomment-508493203

NiklasBr avatar May 11 '20 06:05 NiklasBr

What is the difference to https://github.com/pimcore/data-hub/issues/189 ?

weisswurstkanone avatar May 11 '20 07:05 weisswurstkanone

Also, FIND_IN_SET should be handled to support Advance Many to Many filters where we can pass multiple IDS for this type of relation in the filter

rajesh17692 avatar Aug 02 '20 10:08 rajesh17692

Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

github-actions[bot] avatar Jan 21 '24 07:01 github-actions[bot]