whatIf

Topics: Logistics

First-class hypothetical impact: the delta between the baseline reachable set from seeds and the reachable set with extraEdges unioned in, plus whether the injected edges introduce a cycle. Requires provenance:read permission.

Returns

WhatIfResult!

Arguments

seeds

[ID!]!Required

TypeIDs of the entities to start the hypothetical walk from.

Hypothetical edges to union into the walk (never persisted).

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

maxDepth

IntOptional

Maximum traversal depth. Defaults to 5.

graph

StringOptional

Graph to walk: "fulfillment", "provenance", or "structural". Defaults to "structural".

Exact field SDL
"""
First-class hypothetical impact: the delta between the baseline reachable set from seeds and the reachable set with extraEdges unioned in, plus whether the injected edges introduce a cycle. Requires provenance:read permission.
"""
whatIf(
  """TypeIDs of the entities to start the hypothetical walk from."""
  seeds: [ID!]!
  """Hypothetical edges to union into the walk (never persisted)."""
  extraEdges: [WhatIfEdgeInput!]!
  """
  Traversal direction: "downstream", "upstream", or "both". Defaults to "downstream".
  """
  direction: String
  """Maximum traversal depth. Defaults to 5."""
  maxDepth: Int
  """
  Graph to walk: "fulfillment", "provenance", or "structural". Defaults to "structural".
  """
  graph: String
): WhatIfResult! @topic(names: ["logistics"])

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