Skip to content
On this page

This is an auto-generated document to support extension builders understand the internal packages they can utilize. To find our written guides, tutorials, and API/SDK reference, check out our main docs .

Directus / @directus/sdk / types / ApplyManyToAnyFields

Type alias: ApplyManyToAnyFields<Schema, JunctionCollection, FieldsList, Junction>

ApplyManyToAnyFields<Schema, JunctionCollection, FieldsList, Junction>: Junction extends object ? PickRelationalFields<FieldsList> extends never ? ApplyQueryFields<Schema, Junction, Readonly<UnpackList<FieldsList>>> : "item" extends keyof PickRelationalFields<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 extends object



Junction = UnpackList<JunctionCollection>