schema.graphqls 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright © Magento, Inc. All rights reserved.
  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")
  10. }
  11. type Query {
  12. cmsPage (
  13. id: Int @doc(description: "Id of the CMS page")
  14. ): CmsPage @resolver(class: "Magento\\CmsGraphQl\\Model\\Resolver\\Page") @doc(description: "The CMS page query returns information about a CMS page")
  15. cmsBlocks (
  16. identifiers: [String] @doc(description: "Identifiers of the CMS blocks")
  17. ): CmsBlocks @resolver(class: "Magento\\CmsGraphQl\\Model\\Resolver\\Blocks") @doc(description: "The CMS block query returns information about CMS blocks")
  18. }
  19. type CmsPage @doc(description: "CMS page defines all CMS page information") {
  20. url_key: String @doc(description: "URL key of CMS page")
  21. title: String @doc(description: "CMS page title")
  22. content: String @doc(description: "CMS page content")
  23. content_heading: String @doc(description: "CMS page content heading")
  24. page_layout: String @doc(description: "CMS page content heading")
  25. meta_title: String @doc(description: "CMS page meta title")
  26. meta_description: String @doc(description: "CMS page meta description")
  27. meta_keywords: String @doc(description: "CMS page meta keywords")
  28. }
  29. type CmsBlocks @doc(description: "CMS blocks information") {
  30. items: [CmsBlock] @doc(description: "An array of CMS blocks")
  31. }
  32. type CmsBlock @doc(description: "CMS block defines all CMS block information") {
  33. identifier: String @doc(description: "CMS block identifier")
  34. title: String @doc(description: "CMS block title")
  35. content: String @doc(description: "CMS block content")
  36. }