OBJECT

Query

Root Query

link GraphQL Schema definition

  • type Query {
  • # Perform a search on the Mercatum catelogue.
  • #
  • # Arguments
  • # searchparams: The search parameters to be used
  • search(searchparams: SearchParams): SearchResult!
  • # Browse the Mercatum Catalogue
  • #
  • # Arguments
  • # folder: The folder location to browser
  • browse(folder: String): BrowseResult!
  • # Perform a search within the order history
  • #
  • # Arguments
  • # ordersearchparams: The search parameters to be used
  • orders(ordersearchparams: OrderSearchParams): [Order]
  • # Return a specific Order by either it's id or purchase order
  • #
  • # Arguments
  • # id: The id of the order
  • # po: The purchase order
  • order(id: ID, po: String): [Order]
  • # View the despatches of a particular Order by either it's id or purchase order
  • #
  • # Arguments
  • # id: The id of the order
  • # po: The purchase order
  • despatches(id: ID, po: String): [Despatch]
  • # View details of a specific Product
  • #
  • # Arguments
  • # id: The id of the product item
  • productdetails(id: String!): Product!
  • # Compare two or more products.
  • # The comparison will include the following attributes by default: 'code',
  • # 'brand', 'short description', 'fast-stock', and 'price'.
  • #
  • # Arguments
  • # attr_to_compare: [Not documented]
  • # attributes_to_compare: A list of attributes to include in the
  • # comparison
  • productcompare(
  • attr_to_compare: String,
  • attributes_to_compare: [String!]
  • ): CompareResult
  • # View a specific current basket
  • #
  • # Arguments
  • # name: The name of the basket
  • basket(name: String): Basket!
  • # View all current baskets
  • currentbaskets: [Basket]
  • # View all saved baskets
  • savedbaskets: [Basket]
  • # View basic user information
  • # An id value of '0' with a empty name value will return information about the
  • # current logged in user.
  • #
  • # Arguments
  • # id: The id of the user
  • # name: The name of the user
  • user(id: ID, name: String): User
  • }

link Require by

This element is not required by anyone