queries.md 14 KB


title: "Queries" weight: 1 date: 2023-07-04T11:02:07.589Z showtoc: true

generated: true

Queries

activeAdministrator

{{% gql-fields %}}

activeChannel

{{% gql-fields %}}

  • activeChannel: Channel! {{% /gql-fields %}}

administrator

{{% gql-fields %}}

administrators

{{% gql-fields %}}

asset

Get a single Asset by id

{{% gql-fields %}}

  • asset(id: ID!): Asset {{% /gql-fields %}}

assets

Get a list of Assets

{{% gql-fields %}}

channel

{{% gql-fields %}}

  • channel(id: ID!): Channel {{% /gql-fields %}}

channels

{{% gql-fields %}}

collection

Get a Collection either by id or slug. If neither id nor slug is specified, an error will result.

{{% gql-fields %}}

collectionFilters

{{% gql-fields %}}

collections

{{% gql-fields %}}

countries

{{% gql-fields %}}

country

{{% gql-fields %}}

  • country(id: ID!): Country {{% /gql-fields %}}

customer

{{% gql-fields %}}

customerGroup

{{% gql-fields %}}

customerGroups

{{% gql-fields %}}

customers

{{% gql-fields %}}

eligibleShippingMethodsForDraftOrder

Returns a list of eligible shipping methods for the draft Order

{{% gql-fields %}}

facet

{{% gql-fields %}}

  • facet(id: ID!): Facet {{% /gql-fields %}}

facetValues

{{% gql-fields %}}

facets

{{% gql-fields %}}

fulfillmentHandlers

{{% gql-fields %}}

globalSettings

{{% gql-fields %}}

job

{{% gql-fields %}}

  • job(jobId: ID!): Job {{% /gql-fields %}}

jobBufferSize

{{% gql-fields %}}

jobQueues

{{% gql-fields %}}

  • jobQueues: [JobQueue!]! {{% /gql-fields %}}

jobs

{{% gql-fields %}}

jobsById

{{% gql-fields %}}

  • jobsById(jobIds: [ID!]!): [Job!]! {{% /gql-fields %}}

me

{{% gql-fields %}}

metricSummary

Get metrics for the given interval and metric types.

{{% gql-fields %}}

order

{{% gql-fields %}}

  • order(id: ID!): Order {{% /gql-fields %}}

orders

{{% gql-fields %}}

paymentMethod

{{% gql-fields %}}

paymentMethodEligibilityCheckers

{{% gql-fields %}}

paymentMethodHandlers

{{% gql-fields %}}

paymentMethods

{{% gql-fields %}}

pendingSearchIndexUpdates

{{% gql-fields %}}

  • pendingSearchIndexUpdates: Int! {{% /gql-fields %}}

previewCollectionVariants

Used for real-time previews of the contents of a Collection

{{% gql-fields %}}

product

Get a Product either by id or slug. If neither id nor slug is specified, an error will result.

{{% gql-fields %}}

productOptionGroup

{{% gql-fields %}}

productOptionGroups

{{% gql-fields %}}

productVariant

Get a ProductVariant by id

{{% gql-fields %}}

productVariants

List ProductVariants either all or for the specific product.

{{% gql-fields %}}

products

List Products

{{% gql-fields %}}

promotion

{{% gql-fields %}}

promotionActions

{{% gql-fields %}}

promotionConditions

{{% gql-fields %}}

promotions

{{% gql-fields %}}

province

{{% gql-fields %}}

provinces

{{% gql-fields %}}

role

{{% gql-fields %}}

  • role(id: ID!): Role {{% /gql-fields %}}

roles

{{% gql-fields %}}

search

{{% gql-fields %}}

seller

{{% gql-fields %}}

  • seller(id: ID!): Seller {{% /gql-fields %}}

sellers

{{% gql-fields %}}

shippingCalculators

{{% gql-fields %}}

shippingEligibilityCheckers

{{% gql-fields %}}

shippingMethod

{{% gql-fields %}}

shippingMethods

{{% gql-fields %}}

stockLocation

{{% gql-fields %}}

stockLocations

{{% gql-fields %}}

tag

{{% gql-fields %}}

  • tag(id: ID!): Tag! {{% /gql-fields %}}

tags

{{% gql-fields %}}

taxCategories

{{% gql-fields %}}

taxCategory

{{% gql-fields %}}

taxRate

{{% gql-fields %}}

  • taxRate(id: ID!): TaxRate {{% /gql-fields %}}

taxRates

{{% gql-fields %}}

testEligibleShippingMethods

{{% gql-fields %}}

testShippingMethod

{{% gql-fields %}}

zone

{{% gql-fields %}}

  • zone(id: ID!): Zone {{% /gql-fields %}}

zones

{{% gql-fields %}}