schema-components - v3.7.0
    Preparing search index...

    Function matchUnionOption

    • Pick the union option that structurally matches the supplied value.

      Heuristic only — picks by JavaScript typeof / array / object class. Returns undefined when the value's shape doesn't correspond to any option (for example a null value against a non-nullable union). Callers should fall back to the first option or render an empty state in that case.

      Parameters

      Returns WalkedField | undefined