Inserts a single document into the collection.
A single document to insert.
The status of the operation.
Inserts a batch of documents into the collection.
An array of documents to insert.
An array of statuses of the operation.
Inserts a single document into the collection, or updates it if it already exists based on its ID.
A single document to upsert.
The status of the operation.
Inserts a batch of documents into the collection, or updates them if they already exist based on their ID.
An array of documents to upsert.
An array of statuses of the operation.
Updates a single existing document by ID. Only specified fields and vectors are updated; others remain unchanged.
A single document containing the updated data.
The status of the operation.
Updates multiple existing documents by ID. Only specified fields and vectors are updated; others remain unchanged.
An array of documents containing the updated data.
An array of statuses of the operation.
Deletes a single document by its ID.
A single document ID to delete.
The status of the operation.
Deletes multiple documents by their IDs.
An array of document IDs to delete.
An array of statuses of the operation.
Deletes documents based on a filter expression.
A string representing the filter expression.
The status of the operation.
Fetches documents by their IDs.
A single document ID or an array of document IDs to fetch.
An object mapping the requested IDs to their corresponding documents. If an ID is not found, it will not be present in the returned object.
Optimizes the collection's internal structures for better performance.
Optionaloptions: ZVecOptimizeOptionsOptional parameters for the operation.
Adds a new column to the collection.
An object containing the parameters for the operation.
The schema definition for the new column.
Optionalexpression?: stringOptional expression to compute values for existing documents.
Optionaloptions?: ZVecAddColumnOptionsOptional parameters for the operation.
Alters an existing column in the collection. You can either rename the column or modify its schema.
An object containing the parameters for the operation.
The current name of the column to alter.
OptionalnewColumnName?: stringThe new name for the column (mutually exclusive with fieldSchema).
OptionalfieldSchema?: ZVecFieldSchemaThe new schema definition for the column (mutually exclusive with newColumnName).
Optionaloptions?: ZVecAlterColumnOptionsOptional parameters for the operation.
Creates an index on a specific column in the collection.
An object containing the parameters for the operation.
The name of the column to create the index on.
The configuration parameters defining the index type and properties.
OptionalindexOptions?: ZVecCreateIndexOptionsOptional parameters for the index creation operation.
ReadonlypathGets the file system path associated with this collection.
ReadonlyschemaGets the schema defining the structure of this collection.
ReadonlyoptionsGets the options used when this collection was opened/created.
ReadonlystatsGets statistics about this collection.
Represents a collection in Zvec.