Skip to content
# Function: collectSupportedOptionalConditionBranches()

collectSupportedOptionalConditionBranches(query): SupportedOptionalConditionBranch[]

Defined in: packages/core/src/transformers/PruneOptionalConditionBranches.ts:397

Collects supported top-level optional condition branches from the query graph. The returned branch expressions keep object identity so callers can move them without re-rendering.

Parameters ​

query ​

SelectQuery

Returns ​

SupportedOptionalConditionBranch[]

Released under the MIT License.