Skip to content
On this page

Directus Cloud

Everything you need to start building. Provisioned in 90 seconds. Starting at $15/month.

Get Started

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"> & "collection" extends UnpackList<FieldsList> ? { [Scope in keyof ItemFields]: Object }[keyof ItemFields] : 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>

Defined in ​

types/output.ts:51