Timeline for Magento 2 GraphQL: Filter Products by custom attribute
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 2, 2023 at 4:39 | comment | added | biplab rout | sure. I will add. | |
Feb 23, 2023 at 9:41 | comment | added | Msquare | Very good @biplabrout. Nice solution. Can you please post your solution in the above post, so everyone can get it? | |
Feb 23, 2023 at 5:50 | comment | added | biplab rout | Okay got the solution.. 1. created before plugin for products resolver 2. set the arguments values in session 3. in my custom resolver fetch the arguments using the session | |
Feb 23, 2023 at 3:59 | comment | added | biplab rout | Hi @msquare! Thanks but how to achieve this accessing the arguments of some other resolver class in my custom resolver ? Any help would be appreciated. | |
Feb 21, 2023 at 9:11 | comment | added | Msquare | @biplabrout You can not get that values in the custom resolver. If you want to get above mention arguments you must use this resolver vendor/magento/module-catalog-graph-ql/Model/Resolver/Products.php. Because you can check products query has already defined resolver. | |
Feb 20, 2023 at 18:55 | comment | added | biplab rout | Why not ? For e.g products(search: "bag", sort: {sample_attribute: DESC}) , you are passing arguments right like search, sort, filter ? How to get those values in our custom resolver ? | |
Feb 20, 2023 at 15:14 | comment | added | Msquare | Yes, it's returns null, because it does not have any query param. | |
Feb 20, 2023 at 14:25 | comment | added | biplab rout | $args will give NULL in the above case. Any solution would be appreciated | |
Feb 26, 2022 at 3:28 | history | answered | Msquare | CC BY-SA 4.0 |