SparePart
Spare part entity for GraphQL federation.
Represents a spare part component used in machines and equipment, containing identification, naming, and quantity information for inventory management and parts ordering.
type SparePart {
id: ID!
sku: String!
quantity: Int!
name(
language: String
): [LocalizedString!]
product(
hidden: Boolean
): IBaseProduct
}
Fields
SparePart.id
● ID!
non-null scalar
Unique identifier for the spare part.
System-generated unique identifier used for referencing this specific spare part across all systems and integrations.
SparePart.sku
● String!
non-null scalar
Stock Keeping Unit for the spare part.
Unique alphanumeric code used for inventory tracking, ordering, and identification of this spare part across all systems and suppliers.
SparePart.quantity
● Int!
non-null scalar
Available quantity of the spare part.
Current inventory count representing how many units of this spare part are available for use or ordering.
SparePart.name
● [LocalizedString!]
list object
Localized names for the spare part.
Returns translated names in the requested language or all available languages if no language is specified.
SparePart.name.language
● String
scalar
Language code for filtering localized names.
ISO 639-1 uppercase language code (e.g., 'EN', 'NL', 'DE') to filter names by specific language. When not provided, returns names in all available languages.
SparePart.product
● IBaseProduct
interface
Associated product information for the spare part.
Retrieves the complete product details linked to this spare part. Returns null if no matching product is found or if the product is not accessible.
SparePart.product.hidden
● Boolean
scalar
Include hidden products in the lookup.
When true, includes products marked as hidden in the search. When false or not specified, only returns visible products.
Member Of
SparePartsMachine
object ● SparePartsResponse
object