Optional
filter?: T["FilterType"]Formats the given function into a string representation. Throws an error if the function is not a known comparator or operator, or if it is not allowed.
The function to format, which can be an Operator or Comparator.
A string representation of the function.
Merges two filters into one. If both filters are empty, returns undefined. If one filter is empty or the merge type is 'replace', returns the other filter. If the merge type is 'and' or 'or', returns a new filter with the merged results. Throws an error for unknown merge types.
The default filter to merge.
The generated filter to merge.
The type of merge to perform. Can be 'and', 'or', or 'replace'. Defaults to 'and'.
A merged WeaviateFilter, or undefined if both filters are empty.
Visits a comparison and returns a WeaviateComparisonResult. The comparison's value is checked for type and the comparator is formatted. Throws an error if the value type is not supported.
The comparison to visit.
A WeaviateComparisonResult.
Visits an operation and returns a WeaviateOperationResult. The operation's arguments are visited and the operator is formatted.
The operation to visit.
A WeaviateOperationResult.
Visits a structured query and returns a WeaviateStructuredQueryResult. If the query has a filter, it is visited.
The structured query to visit.
A WeaviateStructuredQueryResult.
Optional
filter?: T["FilterType"]Generated using TypeDoc
A class that translates or converts data into a format that can be used with Weaviate, a vector search engine. It extends the
BaseTranslator
class and provides specific implementation for Weaviate.Example