Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vectorize): add missing metadata filter operations #3501

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/cloudflare/internal/vectorize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ interface VectorizeError {
type VectorizeVectorMetadataFilterOp =
| '$eq'
| '$ne'
| '$in'
| '$nin'
| '$lt'
| '$lte'
| '$gt'
Expand Down
10 changes: 9 additions & 1 deletion types/defines/vectorize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ interface VectorizeError {
*
* This list is expected to grow as support for more operations are released.
*/
type VectorizeVectorMetadataFilterOp = "$eq" | "$ne";
type VectorizeVectorMetadataFilterOp =
| '$eq'
| '$ne'
| '$in'
| '$nin'
| '$lt'
| '$lte'
| '$gt'
| '$gte';

/**
* Filter criteria for vector metadata used to limit the retrieved query result set.
Expand Down