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 / schema / DirectusRelation

Type Alias: DirectusRelation<Schema> ​

DirectusRelation<Schema>: object

Defined in: schema/relation.ts:3

Type Parameters ​

• Schema = any

Type declaration ​

collection ​

collection: string

field ​

field: string

meta ​

meta: MergeCoreCollection<Schema, "directus_relations", { id: number; junction_field: string | null; many_collection: string | null; many_field: string | null; one_allowed_collections: string | null; one_collection: string | null; one_collection_field: string | null; one_deselect_action: string; one_field: string | null; sort_field: string | null; system: boolean | null; }>

related_collection: string

schema ​

schema: object

schema.column ​

schema.column: string

schema.constraint_name ​

schema.constraint_name: string

schema.foreign_key_column ​

schema.foreign_key_column: string

schema.foreign_key_schema ​

schema.foreign_key_schema: string

schema.foreign_key_table ​

schema.foreign_key_table: string

schema.on_delete ​

schema.on_delete: string

schema.on_update ​

schema.on_update: string

schema.table ​

schema.table: string