Skip to content

Commit

Permalink
magento#713: url_path is not working as documented
Browse files Browse the repository at this point in the history
- added `@deprecated` tag to the `url_path`
- details magento/magento2#9113
  • Loading branch information
lenaorobei committed Jun 13, 2019
1 parent 6801e95 commit 7cc8c69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/CatalogUrlRewriteGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

interface ProductInterface {
url_key: String @doc(description: "The part of the URL that identifies the product")
url_path: String @doc(description: "The part of the URL that precedes the url_key")
url_path: String @deprecated(reason: "Use product's `canonical_url` or url rewrites instead")
url_rewrites: [UrlRewrite] @doc(description: "URL rewrites list") @resolver(class: "Magento\\UrlRewriteGraphQl\\Model\\Resolver\\UrlRewrite")
}

input ProductFilterInput {
url_key: FilterTypeInput @doc(description: "The part of the URL that identifies the product")
url_path: FilterTypeInput @doc(description: "The part of the URL that precedes the url_key")
url_path: FilterTypeInput @deprecated(reason: "Use product's `canonical_url` or url rewrites instead")
}

input ProductSortInput {
url_key: SortEnum @doc(description: "The part of the URL that identifies the product")
url_path: SortEnum @doc(description: "The part of the URL that precedes the url_key")
url_path: SortEnum @deprecated(reason: "Use product's `canonical_url` or url rewrites instead")
}

enum UrlRewriteEntityTypeEnum @doc(description: "This enumeration defines the entity type.") {
Expand Down

0 comments on commit 7cc8c69

Please sign in to comment.