Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 1404fb8

Browse files
authored
Merge pull request #3652 from hiren-wagento/patch-6
GraphQL request and response correction
2 parents 7088667 + ba415b5 commit 1404fb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/v2.3/graphql/reference/url-resolver.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ where:
1414
Attribute | Data Type | Description
1515
--- | --- | ---
1616
`url` | String | The URL to resolve. Magento stores product and category URLs with the `.html` extension. CMS URLs do not contain the extension.
17-
`EntityUrl` | `EntityUrl` | An output object containing the `id`, `relative_url`, and `type` attributes.
17+
`EntityUrl` | `EntityUrl` | An output object containing the `id`, `canonical_url`, and `type` attributes.
1818
`id` | Int | The ID assigned to the object associated with the specified `url`. This could be a product ID, category ID, or page ID.
19-
`relative_url` | String | The internal relative URL. If the specified `url` is a redirect, the query returns the redirected URL, not the original.
19+
`canonical_url` | String | The internal relative URL. If the specified `url` is a redirect, the query returns the redirected URL, not the original.
2020
`type` | UrlRewriteEntityTypeEnum | The value of `UrlRewriteEntityTypeEnum` is one of PRODUCT, CATEGORY, or CMS_PAGE.
2121

2222
## Example usage
@@ -27,7 +27,7 @@ Attribute | Data Type | Description
2727
{
2828
urlResolver(url:"joust-duffle-bag.html") {
2929
id
30-
relative_url
30+
canonical_url
3131
type
3232
}
3333
}
@@ -40,7 +40,7 @@ Attribute | Data Type | Description
4040
"data": {
4141
"urlResolver": {
4242
"id": 1,
43-
"relative_url": "catalog/product/view/id/1",
43+
"canonical_url": "catalog/product/view/id/1",
4444
"type": "PRODUCT"
4545
}
4646
}

0 commit comments

Comments
 (0)