createEntityThread(
args
: {entity
:LixEntityCanonical
|LixEntity
;lix
:Pick
<Lix
,"db"
>;thread
: {id
:string
; };versionId?
:string
; }):Promise
<void
>
Creates a mapping between an entity and a thread.
This function allows any entity in the system to have discussion threads, enabling universal commenting across all entity types.
Parameter | Type |
---|---|
args | { entity : LixEntityCanonical | LixEntity ; lix : Pick <Lix , "db" >; thread : { id : string ; }; versionId? : string ; } |
args.entity | LixEntityCanonical | LixEntity |
args.lix | Pick <Lix , "db" > |
args.thread | { id : string ; } |
args.thread.id | string |
args.versionId? | string |
Promise
<void
>