Directus / @directus/sdk / types / ApplyManyToAnyFields
Type Alias: ApplyManyToAnyFields<Schema, JunctionCollection, FieldsList, Junction> ​
ApplyManyToAnyFields<
Schema
,JunctionCollection
,FieldsList
,Junction
>:Junction
extendsobject
?PickRelationalFields
<FieldsList
> extendsnever
?ApplyQueryFields
<Schema
,Junction
,Readonly
<UnpackList
<FieldsList
>>> :"item"
extends keyofPickRelationalFields
<FieldsList
> ?PickRelationalFields
<FieldsList
>["item"
] extends infer ItemFields ?Omit
<ApplyQueryFields
<Schema
,Omit
<Junction
,"item"
>,Readonly
<UnpackList
<FieldsList
>>>,"item"
> &object
:never
:ApplyQueryFields
<Schema
,Junction
,Readonly
<UnpackList
<FieldsList
>>> :never
Apply the configured fields query parameter on a many to any relation
Type Parameters ​
• Schema
• JunctionCollection
• FieldsList
• Junction = UnpackList
<JunctionCollection
>