Function: createThreadComment()

createThreadComment(args: { lix: Lix; } & { body: { content: ({ children: { marks?: (... | ... | ... | ...)[]; metadata?: {[key: string]: unknown; }; text: string; type: "zettel_span"; zettel_key: string; }[]; metadata?: {[key: string]: unknown; }; style: string; type: "zettel_text_block"; zettel_key: string; } | { type: string; zettel_key: string; } & {[key: string]: unknown; })[]; type: "zettel_doc"; }; thread_id: string; } & { id?: string; lixcol_change_id?: string; lixcol_commit_id?: string; lixcol_created_at?: string; lixcol_entity_id?: string; lixcol_file_id?: string; lixcol_inherited_from_version_id?: string; lixcol_plugin_key?: string; lixcol_schema_key?: string; lixcol_untracked?: boolean; lixcol_updated_at?: string; parent_id?: null | string; }): Promise<LixSelectable<EntityStateView<ThreadComment>>>

Adds a comment to an existing thread.

The comment inherits the version context from the thread and can be nested by supplying a parent id.

Example

await createThreadComment({ lix, thread_id, body: "Thanks" })

Parameters

ParameterType
args{ lix: Lix; } & { body: { content: ({ children: { marks?: (... | ... | ... | ...)[]; metadata?: {[key: string]: unknown; }; text: string; type: "zettel_span"; zettel_key: string; }[]; metadata?: {[key: string]: unknown; }; style: string; type: "zettel_text_block"; zettel_key: string; } | { type: string; zettel_key: string; } & {[key: string]: unknown; })[]; type: "zettel_doc"; }; thread_id: string; } & { id?: string; lixcol_change_id?: string; lixcol_commit_id?: string; lixcol_created_at?: string; lixcol_entity_id?: string; lixcol_file_id?: string; lixcol_inherited_from_version_id?: string; lixcol_plugin_key?: string; lixcol_schema_key?: string; lixcol_untracked?: boolean; lixcol_updated_at?: string; parent_id?: null | string; }

Returns

Promise<LixSelectable<EntityStateView<ThreadComment>>>