Skip to content

Commit 987b138

Browse files
author
Valeriy Nayda
committed
GraphQL-84: Return URL Rewrites for products
1 parent df3360b commit 987b138

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

app/code/Magento/CatalogGraphQl/etc/module.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<module name="Magento_GraphQl"/>
1616
<module name="Magento_StoreGraphQl"/>
1717
<module name="Magento_EavGraphQl"/>
18-
<module name="Magento_UrlRewriteGraphQl"/>
1918
</sequence>
2019
</module>
2120
</config>

app/code/Magento/CatalogUrlRewriteGraphQl/etc/schema.graphqls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
interface ProductInterface {
55
url_key: String @doc(description: "The part of the URL that identifies the product")
66
url_path: String @doc(description: "The part of the URL that precedes the url_key")
7+
url_rewrites: [UrlRewrite] @doc(description: "URL rewrites list") @resolver(class: "Magento\\UrlRewriteGraphQl\\Model\\Resolver\\UrlRewrite")
78
}
89

910
input ProductFilterInput {

app/code/Magento/UrlRewriteGraphQl/etc/schema.graphqls

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ type HttpQueryParameter @doc(description: "The object details of target path par
2323
name: String @doc(description: "Parameter name")
2424
value: String @doc(description: "Parameter value")
2525
}
26-
27-
interface ProductInterface {
28-
url_rewrites: [UrlRewrite] @doc(description: "URL rewrites list") @resolver(class: "Magento\\UrlRewriteGraphQl\\Model\\Resolver\\UrlRewrite")
29-
}

0 commit comments

Comments
 (0)