Interface VectorizeDoc

Base type for a document that wishes to leverage automatic vectorization (assuming the collection is vectorize-enabled).

Example

export interface Idea extends VectorizeDoc {
  category: string,
}

db.collection<Idea>('ideas').insertOne({
  category: 'doors',
  $vectorize: 'Upside down doors',
});
interface VectorizeDoc {
    $vectorize: string;
}

Properties

Properties

$vectorize: string

A string field to be automatically vectorized