|
1 | 1 | # Copyright © Magento, Inc. All rights reserved.
|
2 | 2 | # See COPYING.txt for license details.
|
3 |
| -type StoreConfig @doc(description: "The type contains information about a store config") { |
4 |
| - front : String @doc(description: "Default Web URL") |
5 |
| - cms_home_page : String @doc(description: "CMS Home Page") |
6 |
| - no_route : String @doc(description: "Default No-route URL") |
7 |
| - cms_no_route : String @doc(description: "CMS No Route Page") |
8 |
| - cms_no_cookies : String @doc(description: "CMS No Cookies Page") |
9 |
| - show_cms_breadcrumbs : Int @doc(description: "Show Breadcrumbs for CMS Pages") |
| 3 | +type StoreConfig { |
| 4 | + front : String @doc(description: "The landing page that is associated with the base URL.") |
| 5 | + cms_home_page : String @doc(description: "The name of the CMS page that identifies the home page for the store.") |
| 6 | + no_route : String @doc(description: "The default page that displays when a 404 'Page not Found' error occurs.") |
| 7 | + cms_no_route : String @doc(description: "A specific CMS page that displays when a 404 'Page Not Found' error occurs.") |
| 8 | + cms_no_cookies : String @doc(description: "A specific CMS page that displays when cookies are not enabled for the browser.") |
| 9 | + show_cms_breadcrumbs : Int @doc(description: "Indicates whether a breadcrumb trail appears on all CMS pages in the catalog. 0 (No) or 1 (Yes).") |
10 | 10 | }
|
11 | 11 |
|
12 | 12 |
|
13 | 13 | type Query {
|
14 | 14 | cmsPage (
|
15 |
| - id: Int @doc(description: "Id of the CMS page") @deprecated(reason: "The `id` is deprecated. Use `identifier` instead.") @doc(description: "The CMS page query returns information about a CMS page") |
16 |
| - identifier: String @doc(description: "Identifier of the CMS page") |
17 |
| - ): CmsPage @resolver(class: "Magento\\CmsGraphQl\\Model\\Resolver\\Page") @doc(description: "The CMS page query returns information about a CMS page") @cache(cacheIdentity: "Magento\\CmsGraphQl\\Model\\Resolver\\Page\\Identity") |
| 15 | + id: Int @doc(description: "The ID of the CMS page.") @deprecated(reason: "Use `identifier` instead.") |
| 16 | + identifier: String @doc(description: "The identifier of the CMS page.") |
| 17 | + ): CmsPage @resolver(class: "Magento\\CmsGraphQl\\Model\\Resolver\\Page") @doc(description: "Return details about a CMS page.") @cache(cacheIdentity: "Magento\\CmsGraphQl\\Model\\Resolver\\Page\\Identity") |
18 | 18 | cmsBlocks (
|
19 |
| - identifiers: [String] @doc(description: "Identifiers of the CMS blocks") |
20 |
| - ): CmsBlocks @resolver(class: "Magento\\CmsGraphQl\\Model\\Resolver\\Blocks") @doc(description: "The CMS block query returns information about CMS blocks") @cache(cacheIdentity: "Magento\\CmsGraphQl\\Model\\Resolver\\Block\\Identity") |
| 19 | + identifiers: [String] @doc(description: "An array of CMS block IDs.") |
| 20 | + ): CmsBlocks @resolver(class: "Magento\\CmsGraphQl\\Model\\Resolver\\Blocks") @doc(description: "Return information about CMS blocks.") @cache(cacheIdentity: "Magento\\CmsGraphQl\\Model\\Resolver\\Block\\Identity") |
21 | 21 | }
|
22 | 22 |
|
23 |
| -type CmsPage implements RoutableInterface @doc(description: "CMS page defines all CMS page information") { |
24 |
| - identifier: String @doc(description: "Identifier of the CMS page") |
25 |
| - url_key: String @doc(description: "URL key of CMS page") |
26 |
| - title: String @doc(description: "CMS page title") |
27 |
| - content: String @doc(description: "CMS page content") |
28 |
| - content_heading: String @doc(description: "CMS page content heading") |
29 |
| - page_layout: String @doc(description: "CMS page content heading") |
30 |
| - meta_title: String @doc(description: "CMS page meta title") |
31 |
| - meta_description: String @doc(description: "CMS page meta description") |
32 |
| - meta_keywords: String @doc(description: "CMS page meta keywords") |
| 23 | +type CmsPage implements RoutableInterface @doc(description: "Contains details about a CMS page.") { |
| 24 | + identifier: String @doc(description: "The ID of a CMS page.") |
| 25 | + url_key: String @doc(description: "The URL key of the CMS page, which is often based on the `content_heading`.") |
| 26 | + title: String @doc(description: "The name that appears in the breadcrumb trail navigation and in the browser title bar and tab.") |
| 27 | + content: String @doc(description: "The content of the CMS page in raw HTML.") |
| 28 | + content_heading: String @doc(description: "The heading that displays at the top of the CMS page.") |
| 29 | + page_layout: String @doc(description: "The design layout of the page, indicating the number of columns and navigation features used on the page.") |
| 30 | + meta_title: String @doc(description: "A page title that is indexed by search engines and appears in search results listings.") |
| 31 | + meta_description: String @doc(description: "A brief description of the page for search results listings.") |
| 32 | + meta_keywords: String @doc(description: "A brief description of the page for search results listings.") |
33 | 33 | }
|
34 | 34 |
|
35 |
| -type CmsBlocks @doc(description: "CMS blocks information") { |
36 |
| - items: [CmsBlock] @doc(description: "An array of CMS blocks") |
| 35 | +type CmsBlocks @doc(description: "Contains an array CMS block items.") { |
| 36 | + items: [CmsBlock] @doc(description: "An array of CMS blocks.") |
37 | 37 | }
|
38 | 38 |
|
39 |
| -type CmsBlock @doc(description: "CMS block defines all CMS block information") { |
40 |
| - identifier: String @doc(description: "CMS block identifier") |
41 |
| - title: String @doc(description: "CMS block title") |
42 |
| - content: String @doc(description: "CMS block content") |
| 39 | +type CmsBlock @doc(description: "Contains details about a specific CMS block.") { |
| 40 | + identifier: String @doc(description: "The CMS block identifier.") |
| 41 | + title: String @doc(description: "The title assigned to the CMS block.") |
| 42 | + content: String @doc(description: "The content of the CMS block in raw HTML.") |
43 | 43 | }
|
0 commit comments