Directus / @directus/sdk / types / PickRelationalFields
Type Alias: PickRelationalFields<Fields> ​
PickRelationalFields<
Fields
>:MergeRelations
<UnpackList
<Fields
> extends infer Field ?Field
extendsobject
?Field
:never
:never
>
Returns the relational fields from the fields list
Type Parameters ​
• Fields