OBJECT

Query

Root Query

link GraphQL Schema definition

  • type Query {
  • # Perform a search on the Mercatum catelogue.
  • #
  • # Arguments
  • # searchParams: The parameters used for the search
  • search(searchParams: SearchParams): SearchResult
  • # Browse the Mercatum Catalogue
  • #
  • # Arguments
  • # folder: [Not documented]
  • browse(folder: String): BrowseResult!
  • # Perform a search on order history
  • #
  • # Arguments
  • # orderSearchParams: The parameters used for the search
  • orders(orderSearchParams: OrderSearchParams): [Order]
  • # Return the Order by it's ID or Purchase Order number (at least one is required)
  • #
  • # Arguments
  • # id: The ID of the Order
  • # po: The Purchase Order number of the Order
  • order(id: ID, po: String): [Order]
  • # Return a Product by it's ID
  • #
  • # Arguments
  • # id: [Not documented]
  • productDetails(id: String!): Product!
  • # View a comparison between 2 or more products
  • #
  • # Arguments
  • # products: A list of product codes to compare
  • # attrToCompare: A list of attributes to be compared. It will
  • # include: 'code', 'brand', 'short description', 'fast-stock', and 'price' by
  • # default.
  • productCompare(products: [ID!]!, attrToCompare: String): CompareResult
  • # Return a current (in-memory) basket by it's name
  • #
  • # Arguments
  • # basketName: The name of the basket
  • basket(basketName: String): Basket!
  • # Return all current baskets
  • currentBaskets: [Basket]
  • # Return all quote baskets (also known as 'saved baskets')
  • quoteBaskets: [Basket]
  • # Return information about a user
  • #
  • # Arguments
  • # id: The ID of the user
  • # name: The name of the user
  • user(id: ID, name: String): User
  • # Return the default account of associated to the current (logged in) user
  • defaultAccount: AccountDetails
  • }

link Require by

This element is not required by anyone