Skip to main content

deleteForecastScenario

Soft-delete a scenario and re-pack the surviving order to 0..N.

Returns the surviving live scenarios in their post-normalize order so the client can re-render without an extra forecastScenarios round-trip. A delete always shifts every other scenario's order, so the client cannot avoid a refetch any other way.

Concurrency: the service locks the live scenario set with SELECT ... FOR UPDATE before enforcing the minimum-count guard, preventing concurrent deletes from bypassing Cannot delete your only scenario. No optimistic version field — a client targeting a scenario another session already deleted gets Scenario not found and should refetch the list.

deleteForecastScenario(
input: DeleteForecastScenarioInput!
): DeleteForecastScenarioMutation

Arguments​

deleteForecastScenario.input ● DeleteForecastScenarioInput! non-null input​

Type​

DeleteForecastScenarioMutation object​

Soft-delete a scenario and re-pack the surviving order to 0..N.

Returns the surviving live scenarios in their post-normalize order so the client can re-render without an extra forecastScenarios round-trip. A delete always shifts every other scenario's order, so the client cannot avoid a refetch any other way.

Concurrency: the service locks the live scenario set with SELECT ... FOR UPDATE before enforcing the minimum-count guard, preventing concurrent deletes from bypassing Cannot delete your only scenario. No optimistic version field — a client targeting a scenario another session already deleted gets Scenario not found and should refetch the list.