File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
npm-packages/convex/src/cli/lib Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,17 @@ struct BackfillResponse {
7474 state : String ,
7575}
7676
77+ // When updating this, please keep `IndexMetadata`
78+ // in `npm-packages/convex/src/cli/lib/indexes.ts` in sync
7779#[ derive( Serialize ) ]
7880#[ serde( rename_all = "camelCase" ) ]
7981pub struct IndexMetadataResponse {
8082 table : String ,
8183 name : String ,
82- // Either an array of fields (`string[]`) for a database index or an object of
83- // `{ searchField: string, filterFields: string }` for a search index.
84+ // Either:
85+ // - an array of fields (`string[]`) for a database index
86+ // - `{ searchField: string, filterFields: string[] }` for a search index
87+ // - `{ dimensions: number, vectorField: string, filterFields: string[] }` for a vector index
8488 fields : JsonValue ,
8589 backfill : BackfillResponse ,
8690 staged : bool ,
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ type IndexMetadata = {
2424 | {
2525 searchField : string ;
2626 filterFields : string [ ] ;
27+ }
28+ | {
29+ dimensions : number ;
30+ vectorField : string ;
31+ filterFields : string [ ] ;
2732 } ;
2833 backfill : {
2934 state : "in_progress" | "done" ;
You can’t perform that action at this time.
0 commit comments