Skip to main content

reportProductSales Query

DEPRECATED

This field will be removed in Saleor 4.0.

List of top selling products.

Requires MANAGE_PRODUCTSpermission.
reportProductSales(
period: ReportingPeriod!
channel: String!
before: String
after: String
first: Int
last: Int
): ProductVariantCountableConnection @deprecated

Arguments

reportProductSales.period ● ReportingPeriod! non-null enum miscellaneous

Span of time.

reportProductSales.channel ● String! non-null scalar miscellaneous

Slug of a channel for which the data should be returned.

reportProductSales.before ● String scalar miscellaneous

Return the elements in the list that come before the specified cursor.

reportProductSales.after ● String scalar miscellaneous

Return the elements in the list that come after the specified cursor.

reportProductSales.first ● Int scalar miscellaneous

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

reportProductSales.last ● Int scalar miscellaneous

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

Type

ProductVariantCountableConnection object products