FieldSelection type

Type-safe scalar and one-level relationship selection. Use relationship[].field for arrays and relationship.field for objects. Bare object roots and deeper object leaves are not selectable.

type FieldSelection<T> = readonly NestedFieldPath<T>[]