schema.graphqls 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Query {
  4. currency: Currency @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Currency") @doc(description: "The currency query returns information about store currency.")
  5. countries: [Country] @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Countries") @doc(description: "The countries query provides information for all countries.")
  6. country (id: String): Country @resolver(class: "Magento\\DirectoryGraphQl\\Model\\Resolver\\Country") @doc(description: "The countries query provides information for a single country.")
  7. }
  8. type Currency {
  9. base_currency_code: String
  10. base_currency_symbol: String
  11. default_display_currecy_code: String
  12. default_display_currecy_symbol: String
  13. available_currency_codes: [String]
  14. exchange_rates: [ExchangeRate]
  15. }
  16. type ExchangeRate {
  17. currency_to: String
  18. rate: Float
  19. }
  20. type Country {
  21. id: String
  22. two_letter_abbreviation: String
  23. three_letter_abbreviation: String
  24. full_name_locale: String
  25. full_name_english: String
  26. available_regions: [Region]
  27. }
  28. type Region {
  29. id: Int
  30. code: String
  31. name: String
  32. }