schema.graphqls 1.3 KB

12345678910111213141516171819202122
  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Query {
  4. wishlist: WishlistOutput @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistResolver") @doc(description: "The wishlist query returns the contents of a customer's wish list")
  5. }
  6. type WishlistOutput {
  7. items: [WishlistItem] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItemsResolver") @doc(description: "An array of items in the customer's wish list"),
  8. items_count: Int @doc(description: "The number of items in the wish list"),
  9. name: String @doc(description: "When multiple wish lists are enabled, the name the customer assigns to the wishlist"),
  10. sharing_code: String @doc(description: "An encrypted code that Magento uses to link to the wish list"),
  11. updated_at: String @doc(description: "The time of the last modification to the wish list")
  12. }
  13. type WishlistItem {
  14. id: Int @doc(description: "The wish list item ID")
  15. qty: Float @doc(description: "The quantity of this wish list item"),
  16. description: String @doc(description: "The customer's comment about this item"),
  17. added_at: String @doc(description: "The time when the customer added the item to the wish list"),
  18. product: ProductInterface @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\ProductResolver")
  19. }