Type alias ConvexKVStoreConfig<DataModel, TableName, IndexName, KeyFieldName, ValueFieldName, UpsertMutation, LookupQuery, DeleteManyMutation>
 
ConvexKVStoreConfig<DataModel, TableName, IndexName, KeyFieldName, ValueFieldName, UpsertMutation, LookupQuery, DeleteManyMutation>: { 
    ctx: GenericActionCtx<DataModel>; 
    deleteMany?: DeleteManyMutation; 
    index?: IndexName; 
    keyField?: KeyFieldName; 
    lookup?: LookupQuery; 
    table?: TableName; 
    upsert?: UpsertMutation; 
    valueField?: ValueFieldName; 
}
Type Parameters
- 
DataModel extends GenericDataModel
- 
TableName extends TableNamesInDataModel<DataModel>
- 
IndexName extends VectorIndexNames<NamedTableInfo<DataModel, TableName>>
- 
KeyFieldName extends FieldPaths<NamedTableInfo<DataModel, TableName>>
- 
ValueFieldName extends FieldPaths<NamedTableInfo<DataModel, TableName>>
- 
UpsertMutation extends FunctionReference<"mutation", "internal", { 
 document: object;
 table: string;
 }>
- 
LookupQuery extends FunctionReference<"query", "internal", { 
 index: string;
 key: string;
 keyField: string;
 table: string;
 }, object[]>
- 
DeleteManyMutation extends FunctionReference<"mutation", "internal", { 
 index: string;
 key: string;
 keyField: string;
 table: string;
 }>
Type declaration
- 
Readonlyctx: GenericActionCtx<DataModel>
- 
OptionalReadonlydeleteMany?: DeleteManyMutation
- 
OptionalReadonlyindex?: IndexName
- 
OptionalReadonlykeyField?: KeyFieldName
- 
OptionalReadonlylookup?: LookupQuery
- 
OptionalReadonlytable?: TableName
- 
OptionalReadonlyupsert?: UpsertMutation
- 
OptionalReadonlyvalueField?: ValueFieldName
 
 
Type that defines the config required to initialize the ConvexKVStore class. It includes the table name, index name, field name.