Skip to content

toUpstashFilterString

function toUpstashFilterString(filter?): string;

Translate Kuralle’s MongoDB-style VectorFilter into Upstash Vector’s SQL-like string filter (field = 'value' AND field2 > 5).

Upstash does not support $nin / $exists. Unsupported operators throw UnsupportedFilterOperatorError.

Parameter Type

filter?

VectorFilter

string