Skip to content

Commit 4b4f297

Browse files
feat(mongodb-constants): add view to search stages (#568)
1 parent f517a4a commit 4b4f297

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/mongodb-constants/src/stage-operators.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
DATABASE,
77
ANY_COLLECTION_NAMESPACE,
88
COLLECTION,
9+
VIEW,
910
} from './ns';
1011

1112
type StageOperator = {
@@ -896,7 +897,7 @@ const STAGE_OPERATORS = [
896897
meta: 'stage',
897898
version: '4.1.11',
898899
apiVersions: [],
899-
namespaces: [COLLECTION],
900+
namespaces: [COLLECTION, VIEW],
900901
description: 'Performs a full-text search on the specified field(s).',
901902
comment: `/**
902903
* index: The name of the Search index.
@@ -929,7 +930,7 @@ const STAGE_OPERATORS = [
929930
meta: 'stage',
930931
version: '4.4.9',
931932
apiVersions: [],
932-
namespaces: [COLLECTION],
933+
namespaces: [COLLECTION, VIEW],
933934
description:
934935
'Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.',
935936
comment: `/**
@@ -1193,7 +1194,7 @@ const STAGE_OPERATORS = [
11931194
meta: 'stage',
11941195
version: '>=6.0.10 <7.0.0 || >=7.0.2',
11951196
apiVersions: [],
1196-
namespaces: [COLLECTION],
1197+
namespaces: [COLLECTION, VIEW],
11971198
description:
11981199
'Performs a kNN search on embeddings in the specified field(s)',
11991200
comment: `/**

0 commit comments

Comments
 (0)