Skip to main content

SparePartsResponse

Paginated response containing spare parts search results with price filtering and attribute aggregation.

type SparePartsResponse {
items: [SparePart!]!
itemsFound: Int!
offset: Int!
page: Int!
pages: Int!
start: Int!
end: Int!
minPrice: Int!
maxPrice: Int!
filterCoverage: FilterCoverage
filters(input: FilterAvailableAttributeInput): [AttributeFilter!]
}

Fields​

SparePartsResponse.items ● [SparePart!]! non-null object​

Collection of spare parts matching the search criteria.

SparePartsResponse.itemsFound ● Int! non-null scalar​

Total number of spare parts found across all pages.

SparePartsResponse.offset ● Int! non-null scalar​

Number of items displayed per page.

SparePartsResponse.page ● Int! non-null scalar​

Current page number in the result set.

SparePartsResponse.pages ● Int! non-null scalar​

Total number of pages available.

SparePartsResponse.start ● Int! non-null scalar​

Starting position of items on the current page.

SparePartsResponse.end ● Int! non-null scalar​

Ending position of items on the current page.

SparePartsResponse.minPrice ● Int! non-null scalar​

The lowest price of a product in this product list.

SparePartsResponse.maxPrice ● Int! non-null scalar​

The highest price of a product in this product list.

SparePartsResponse.filterCoverage ● FilterCoverage object​

Coverage of the filters field.

Null when filters were not requested. Otherwise reports how many attribute descriptions matched this request and whether the limit left any of them out.

SparePartsResponse.filters ● [AttributeFilter!] list object​

Available attribute filters for faceted search over spare parts.

The input argument is read from the GraphQL resolve info in the upstream resolver via ProductSearchResolveInfoHelper. When present, it takes precedence over the legacy filters field on SparePartsMachineProductSearchInput.

**Limit:** at most 200 attribute descriptions are considered when building filters, and the tenant's most recently created attributes take precedence. Tenants that define more searchable attributes than this receive no filters for the remainder, and the field returns an empty list when none of the attributes within the limit apply to the result set. Pass input.ids to request filters for specific attributes regardless of this limit.

SparePartsResponse.filters.input ● FilterAvailableAttributeInput input​

Filter configuration for determining available attributes.

Member Of​

SparePartsMachine object