OBJECT

Query

Root queries that don't modify database records.

link GraphQL Schema definition

  • type Query {
  • # Query ElasticSearch for adverts
  • #
  • # Arguments
  • # attributes: Search query params to determine which adverts are
  • # returned.
  • advertSearch(attributes: AdvertSearchInput): AdvertSearchResponse!
  • # Select adverts with the given attributes. Only adverts that match all queried
  • # fields will be returned. If no arguments are given, returns an empty response.
  • #
  • # Arguments
  • # variantBarcodes: Select adverts that have associated variants
  • # with one of the given barcodes.
  • # variantSkus: Select adverts that have associated variants with
  • # one of the given skus.
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • advertsWhere(
  • variantBarcodes: [String!],
  • variantSkus: [String!],
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): AdvertsConnection!
  • # Includes deleted and unpublished adverts
  • #
  • # Arguments
  • # updatedSince: Only return adverts which have been updated since
  • # this date
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • allAdverts(
  • updatedSince: ISO8601DateTime,
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): AllAdvertsConnection!
  • # Arguments
  • # showOnlineOnly: Request only brands that have online adverts
  • # associated with them.
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • brands(
  • showOnlineOnly: Boolean,
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): BrandsConnection!
  • # Get cart details.
  • #
  • # Arguments
  • # id: ID of the requested cart.
  • cart(id: ID!): Cart!
  • # Direct email marketing
  • emailMarketing: EmailMarketing!
  • # Arguments
  • # ownerType: Specify the type of the external id, eg: invoice,
  • # order, variant.
  • # key: Label for the system or client that uses this external ID.
  • # value: The external ID used by an external system or client.
  • externalIds(ownerType: String, key: String, value: String): [ExternalID!]!
  • # Site footer data
  • footer: Footer!
  • # Site header data
  • header: Header!
  • # Get suggestions for location-based search queries.
  • #
  • # Arguments
  • # query: Location query string. Can be a city or postcode.
  • locationSuggestions(query: String!): [Location!]!
  • # Fetches an object given its ID.
  • #
  • # Arguments
  • # id: ID of the object.
  • node(id: ID!): Node
  • # Fetches a list of objects given a list of IDs.
  • #
  • # Arguments
  • # ids: IDs of the objects.
  • nodes(ids: [ID!]!): [Node]!
  • # Get order details
  • #
  • # Arguments
  • # orderId: ID of the requested order.
  • order(orderId: ID!): Order!
  • # Get order details from the cart that it was created from.
  • #
  • # Arguments
  • # cartId: ID of the cart that was converted into this order.
  • orderFromCart(cartId: ID!): Order
  • sellerCategories: [SellerCategoryLink!]!
  • # Minimal set of attributes required for displaying and filtering Sellers on a map
  • sellerGeographicLocations: [SellerGeolocation!]!
  • # Query ElasticSearch for sellers.
  • #
  • # Arguments
  • # attributes: Query params to define which sellers to search for.
  • # pagination: Params to define how to paginate search results.
  • sellerSearch(
  • attributes: SellerSearchInput,
  • pagination: SellerSearchPaginationInput
  • ): SellerSearchResponse!
  • # Site configuration properties
  • siteConfig: SiteConfig!
  • # Arguments
  • # parentId: Filter taxons that belong to to the selected parent.
  • # showOnlineOnly: Filter taxons that have online adverts
  • # associated with them.
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • taxons(
  • parentId: ID,
  • showOnlineOnly: Boolean,
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): TaxonsConnection!
  • # Get taxon and brand suggestions for text-based search queries.
  • #
  • # Arguments
  • # query: Query string to be used to find text suggestions.
  • textQuerySuggestions(query: String!): [TextQuerySuggestion!]!
  • # Return theming attributes from AppConfig
  • theme: Theme!
  • # Fetch I18n translation values by key.
  • #
  • # Arguments
  • # translations: Params to generate the requested translations.
  • translations(translations: [TranslationInput!]!): [Translation!]!
  • user: User!
  • }

link Require by

This element is not required by anyone