Skip to content

graphql

Auto Added by WPeMatico

Graphql returns empty array

I’m using graphql to get data to my PWA frontend project.Following is my schema.graphqls type Query { comparelist: [ComparelistOutput] @resolver(class: “NeoSolax\CompareList\Model\Resolver\ComparelistItemResolver”) @doc(description: “An array of items in the customer’s compare list”) } type ComparelistOutput { id:String sku:String url_key:String } ComparelistItemResolver.php… Read More »Graphql returns empty array

How to prevent cross side scripting in graphql input fields magento2

Here is an example, how to prevent cross side scripting for the firstname & lastname input fields. If any one have the solution please advise. mutation{ createCompanyUser ( input: { email: “[email protected]” firstname: ” id=X tabindex=1 onfoucs=alert(document.domain)></script>” lastname: “demo’??>’><<” job_title:… Read More »How to prevent cross side scripting in graphql input fields magento2

How can I improve response query time on Magento PWA with Magento 2.4.3 backend? low response network speed on production with Magento PWA

i’m currently developing a Magento PWA front with a Magento 2.4.3 store on backend. Thing is, when testing on production, and specially Category pages, sometimes the response time of some queries is to high and its making the store very… Read More »How can I improve response query time on Magento PWA with Magento 2.4.3 backend? low response network speed on production with Magento PWA