provenanceTrace

Topics: Logistics

Cross-layer lineage subgraph (nodes + edges) around a provenance entity, over the structural composite (operational + fulfillment + provenance). Requires provenance:read permission.

Returns

GraphTrace!

Arguments

entityId

ID!Required

TypeID of the seed entity (e.g. "ord_01K…"); its prefix names the entity kind.

maxDepth

IntOptional

Maximum traversal depth. Defaults to 5.

Traversal direction: "downstream", "upstream", or "both". Defaults to "both".

Exact field SDL
"""
Cross-layer lineage subgraph (nodes + edges) around a provenance entity, over the structural composite (operational + fulfillment + provenance). Requires provenance:read permission.
"""
provenanceTrace(
  """
  TypeID of the seed entity (e.g. "ord_01K…"); its prefix names the entity kind.
  """
  entityId: ID!
  """Maximum traversal depth. Defaults to 5."""
  maxDepth: Int
  """
  Traversal direction: "downstream", "upstream", or "both". Defaults to "both".
  """
  direction: String
): GraphTrace! @topic(names: ["logistics"])

Declared on Query. Access is checked by the platform for each operation.