schema.graphqls 1001 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.

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_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")
}

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")
}

enum UrlRewriteEntityTypeEnum @doc(description: "This enumeration defines the entity type.") {
    PRODUCT
    CATEGORY
}