# Function: pruneOptionalConditionBranches()
pruneOptionalConditionBranches(
query,pruningParameters):SelectQuery
Defined in: packages/core/src/transformers/PruneOptionalConditionBranches.ts:364
Prunes supported optional WHERE branches when an explicitly targeted parameter is absent-equivalent. For the MVP, only null and undefined are treated as absent and unsupported shapes remain exact no-op.
Parameters
query
pruningParameters
OptionalConditionPruningParameters