Manufacturing Routings Queries

Manufacturing Routings

Manufacturing routings define the sequence of steps required to manufacture a product.

Available fields

FieldTypeDescription
idIntUnique identifier.
labelStringRouting name.
descriptionStringOptional description.
activeBooleanWhether this routing is active.
created_atDateTimeCreation timestamp.
updated_atDateTimeLast update timestamp.
steps[ManufacturingRoutingStep]List of routing steps.

ManufacturingRoutingStep

FieldTypeDescription
idIntUnique identifier.
manufacturing_routing_idIntParent routing ID.
labelStringStep name.
descriptionStringOptional description.
scopeManufacturingRoutingStepScopeStep scope (MO or BATCH).
step_typeManufacturingRoutingStepTypeStep type.
is_requiredBooleanWhether this step is required.
weightIntStep order weight.

Enums

ManufacturingRoutingStepScope

ValueDescription
MOManufacturing order level.
BATCHBatch level.

ManufacturingRoutingStepType

ValueDescription
NORMALStandard step.
PRODUCTIONProduction step.
SEND_COMPONENTSSend components step.
RECEIVE_BATCHReceive batch step.

ManufacturingRouting

Returns a single manufacturing routing by id.

query GetManufacturingRouting($id: ID!) {
  ManufacturingRouting(id: $id) {
    id
    label
    description
    active
    created_at
    updated_at
    steps {
      id
      label
      description
      scope
      step_type
      is_required
      weight
    }
  }
}

ManufacturingRoutings

Returns a paginated list of manufacturing routings with sorting and filters.

query ManufacturingRoutings(
  $active: Boolean
  $orderBy: [QueryManufacturingRoutingsOrderByOrderByClause!]
) {
  ManufacturingRoutings(active: $active, orderBy: $orderBy) {
    id
    label
    description
    active
    created_at
    steps {
      id
      label
      scope
      step_type
    }
  }
}