Class ConvexChatMessageHistory<DataModel, SessionIdFieldName, TableName, IndexName, MessageTextFieldName, InsertMutation, LookupQuery, DeleteManyMutation>

Type Parameters

  • DataModel extends GenericDataModel

  • SessionIdFieldName extends FieldPaths<NamedTableInfo<DataModel, TableName>> = "sessionId"

  • TableName extends TableNamesInDataModel<DataModel> = "messages"

  • IndexName extends IndexNames<NamedTableInfo<DataModel, TableName>> = "bySessionId"

  • MessageTextFieldName extends FieldPaths<NamedTableInfo<DataModel, TableName>> = "message"

  • InsertMutation extends FunctionReference<"mutation", "internal", {
        document: object;
        table: string;
    }> = any

  • LookupQuery extends FunctionReference<"query", "internal", {
        index: string;
        key: string;
        keyField: string;
        table: string;
    }, object[]> = any

  • DeleteManyMutation extends FunctionReference<"mutation", "internal", {
        index: string;
        key: string;
        keyField: string;
        table: string;
    }> = any

Hierarchy (view full)

Constructors

Methods

Generated using TypeDoc