New answers tagged

1 vote
Accepted

Extend Magento2 GraphQl Product Query?

Try this code app/code/VendorName/ModuleName/etc schema.graphqls interface ProductInterface { faqList: [faqsList] @doc(description: "FAQ array added to the product query") @resolver(class: ...
Msquare's user avatar
  • 7,935
1 vote

Extend Magento2 GraphQl Product Query?

Replace schema.graphqls with below and check interface ProductInterface { faqList: [faqsList] @doc(description: "Custom field added to the product query") @resolver(class: "Vendor\\...
Mufaddal Dhansurawala's user avatar
0 votes

Magento Api Calls return a void object

Can you please check the method type mentioned correctly like "POST" or "PUT" in webapi.xml file. <route url="/V1/params/:someString/items" method="PUT">
Divya Sekar's user avatar
  • 1,441
0 votes

Updating products in bulk with async endpoint fails with error getProductFromLocalCache() must be of the type string, null given

The solution was rather basic. The payload structure was wrong. I had 'sku' outside the 'product' array by mistake. All good now.
user2029890's user avatar
0 votes

Fetching SKUs containing a "/" (forward slash character) from the /rest/v1/products/ REST API endpoint?

Magento now supports slashes in the API but if using Apache2 the conf file for the virtual host must contain the line AllowEncodedSlashes NoDecode If using varnish with apache2 to offload SSL then the ...
John Bridger's user avatar

Top 50 recent answers are included