Skip to content

graphql

Auto Added by WPeMatico

Create a custom component to create display design options in admin and design option dropdown and selected will be displayed on product page

Create a custom component to add/edit/delete and view the detail of design information into admin. Associate the multiple design option to product and show selected design option product detail page. Create following fields in given table: Table name: design design_id… Read More »Create a custom component to create display design options in admin and design option dropdown and selected will be displayed on product page

how do I create a custom GraphQL query that fetches a list of products in Magento 2.4.1

In my schema.graphqls file I’ve created this Query type Query { getLinkedProductsByGroups(groups: [String]): [LinkedProductsByGroup] @resolver(class: “Vendor\ProductDisplay\Model\Resolver\LinkedProductsByGroups”) } type LinkedProductsByGroup { group: String products: [ProductInterface] } I’ve created my resolver <?php /* * Copyright (c) 2023. Vendor TECHNOLOGIES */ namespace VendorProductDisplayModelResolver;… Read More »how do I create a custom GraphQL query that fetches a list of products in Magento 2.4.1

Magento 2 GraphQl get store wise product collection

I want to get the product collection store-wise via graphQl. I have set in header parameter “Store”: “ar”, I want to get the product name in the Arabic store, but it’s not working. I have referred this https://devdocs.magento.com/guides/v2.4/graphql/send-request.html#headers

How to cache GraphQL requests?

My Magento 2.4 isn’t caching requests I use many times, like storeConfig via PWA Studio. My request header: x-cache-hits: 0 How could I cache this kind of request to optimize the speed of my page loads?