Magento

How to use GraphQl urlResolver query in Magento:

Pinterest LinkedIn Tumblr

The following query returns information about the URL containing cipla-product.html

Query the URL’s information

Request:

{
  urlResolver(url: "cipla-product.html") {
    entity_uid
    relative_url
    redirectCode
    type
  }
}

Response:

{
  "data": {
    "urlResolver": {
      "entity_uid": "MQ==",
      "relative_url": "joust-duffle-bag.html",
      "redirectCode": 0,
      "type": "PRODUCT"
    }
  }
}

Write A Comment

Faster PHP Cloud Hosting