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

Type Parameters ​

• Schema = any

Type declaration ​

collection ​

collection: string

field ​

field: string

meta ​

meta: MergeCoreCollection<Schema, "directus_relations", object>

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

Defined in ​

schema/relation.ts:3