schema.graphqls 2.16 KB
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 24 25 26 27 28 29 30 31 32 33
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.
type Query {
    storeConfig : StoreConfig @resolver(class: "Magento\\StoreGraphQl\\Model\\Resolver\\StoreConfigResolver") @doc(description: "The store config query")
}

type Website @doc(description: "The type contains information about a website") {
    id : Int @doc(description: "The ID number assigned to the website")
    name : String @doc(description: "The website name. Websites use this name to identify it easier.")
    code : String @doc(description: "A code assigned to the website to identify it")
    sort_order : Int @doc(description: "The attribute to use for sorting websites")
    default_group_id : String @doc(description: "The default group ID that the website has")
    is_default : Boolean @doc(description: "Specifies if this is the default website")
}

type StoreConfig @doc(description: "The type contains information about a store config") {
    id : Int @doc(description: "The ID number assigned to the store")
    code : String @doc(description: "A code assigned to the store to identify it")
    website_id : Int @doc(description: "The ID number assigned to the website store belongs")
    locale : String @doc(description: "Store locale")
    base_currency_code : String @doc(description: "Base currency code")
    default_display_currency_code : String @doc(description: "Default display currency code")
    timezone : String @doc(description: "Timezone of the store")
    weight_unit : String @doc(description: "The unit of weight")
    base_url : String @doc(description: "Base URL for the store")
    base_link_url : String @doc(description: "Base link URL for the store")
    base_static_url : String @doc(description: "Base static URL for the store")
    base_media_url : String @doc(description: "Base media URL for the store")
    secure_base_url : String @doc(description: "Secure base URL for the store")
    secure_base_link_url : String @doc(description: "Secure base link URL for the store")
    secure_base_static_url : String @doc(description: "Secure base static URL for the store")
    secure_base_media_url : String @doc(description: "Secure base media URL for the store")
}