ILinkModule
Methods
__joinerConfig
__joinerConfig(): ModuleJoinerConfig
Returns
ModuleJoinerConfig
Omit<JoinerServiceConfig, "serviceName" | "primaryKeys" | "relationships" | "extends"> & { databaseConfig?: { extraFields?: Record<string, { defaultValue?: string ; nullable?: boolean ; options?: Record<string, unknown> ; type: "date" | "time" | "datetime" | "bigint" | "blob" | "uint8array" | "array" | "enumArray" | "enum" | "json" | "integer" | "smallint" | "tinyint" | "mediumint" | "float" | "double" | "boolean" | "decimal" | "string" | "uuid" | "text" }> ; idPrefix?: string ; tableName?: string } ; extends?: { fieldAlias?: Record<string, string | { forwardArgumentsOnPath: string[] ; path: string }> ; relationship: ModuleJoinerRelationship ; serviceName: string }[] ; isLink?: boolean ; isReadOnlyLink?: boolean ; linkableKeys?: Record<string, string> ; primaryKeys?: string[] ; relationships?: ModuleJoinerRelationship[] ; schema?: string ; serviceName?: string }Requiredcreate
create(primaryKeyOrBulkData
, foreignKeyData?
, sharedContext?
): Promise
<unknown
[]>
Parameters
primaryKeyOrBulkData
string | string[] | [string | string[], string, Record<string, unknown\>?][]RequiredforeignKeyData
stringsharedContext
ContextReturns
Promise
<unknown
[]>
Promise
Promise<unknown[]>Required
Promise
Promise<unknown[]>Requireddelete
delete(data
, sharedContext?
): Promise
<void
>
Parameters
data
unknownRequiredsharedContext
ContextReturns
Promise
<void
>
Promise
Promise<void>Requireddismiss
dismiss(primaryKeyOrBulkData
, foreignKeyData?
, sharedContext?
): Promise
<unknown
[]>
Parameters
primaryKeyOrBulkData
string | string[] | [string | string[], string][]RequiredforeignKeyData
stringsharedContext
ContextReturns
Promise
<unknown
[]>
Promise
Promise<unknown[]>Required
Promise
Promise<unknown[]>Requiredlist
list(filters?
, config?
, sharedContext?
): Promise
<unknown
[]>
Parameters
Returns
Promise
<unknown
[]>
Promise
Promise<unknown[]>Required
Promise
Promise<unknown[]>RequiredlistAndCount
listAndCount(filters?
, config?
, sharedContext?
): Promise
<[unknown
[], number
]>
Parameters
Returns
Promise
<[unknown
[], number
]>
Promise
Promise<[unknown[], number]>Required
Promise
Promise<[unknown[], number]>Requiredrestore
restore(data
, config?
, sharedContext?
): Promise
<void
| Record<string
, unknown
[]>>
Parameters
Returns
Promise
<void
| Record<string
, unknown
[]>>
Promise
Promise<void | Record<string, unknown[]>>Required
Promise
Promise<void | Record<string, unknown[]>>RequiredsoftDelete
softDelete(data
, config?
, sharedContext?
): Promise
<void
| Record<string
, unknown
[]>>
Parameters
Returns
Promise
<void
| Record<string
, unknown
[]>>
Promise
Promise<void | Record<string, unknown[]>>Required
Promise
Promise<void | Record<string, unknown[]>>RequiredWas this section helpful?