Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.firstresonance.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Pull two as-built BOMs and diff them client-side. Use case group: Build Hardware

Query

query CompareAboms($idA: Int!, $idB: Int!) {
  a: partInventory(id: $idA) {
    id
    serialNumber
    buildRequirements {
      id
      part { partNumber }
      quantity
    }
  }
  b: partInventory(id: $idB) {
    id
    serialNumber
    buildRequirements {
      id
      part { partNumber }
      quantity
    }
  }
}

Variables

{ "idA": 9876, "idB": 9877 }

Sample response

{
  "data": {
    "a": { "id": 9876, "serialNumber": "ASM-00012", "buildRequirements": [ { "id": 100, "part": { "partNumber": "BRKT-001" }, "quantity": 1 } ] },
    "b": { "id": 9877, "serialNumber": "ASM-00013", "buildRequirements": [ { "id": 110, "part": { "partNumber": "BRKT-001" }, "quantity": 2 } ] }
  }
}

Notes

GraphQL aliases (a: and b:) let you fetch both aBOMs in one round trip. Diff client-side by part.partNumber and quantity.